feature: lock only one use radio mode

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent 533e705fae
commit cd82d175c2
4 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ const init: UserAllocation = {
strength: 0,
money: 0,
}
const allocAtom = atom<UserAllocation>({ ...init })
export const allocAtom = atom<UserAllocation>({ ...init })
const alloced = (alloc: UserAllocation) =>
Object.values(alloc).reduce((a, b) => a + b, 0)