Fix toggle

This commit is contained in:
Kwaroran
2025-03-08 19:29:22 +09:00
parent 407112273e
commit 5bd76e6e41

View File

@@ -40,7 +40,7 @@
{:else} {:else}
<div class="flex mt-2 items-center"> <div class="flex mt-2 items-center">
<CheckInput check={DBState.db.globalChatVariables[`toggle_${toggle.key}`] === '1'} reverse={reverse} name={toggle.value} onChange={() => { <CheckInput check={DBState.db.globalChatVariables[`toggle_${toggle.key}`] === '1'} reverse={reverse} name={toggle.value} onChange={() => {
DBState.db.globalChatVariables[`toggle_${toggle.value}`] = DBState.db.globalChatVariables[`toggle_${toggle.value}`] === '1' ? '0' : '1' DBState.db.globalChatVariables[`toggle_${toggle.key}`] = DBState.db.globalChatVariables[`toggle_${toggle.key}`] === '1' ? '0' : '1'
}} /> }} />
</div> </div>
{/if} {/if}