feature: lock only one use radio mode

This commit is contained in:
Vick Scarlet
2026-08-12 17:41:51 +08:00
parent 5a4821433a
commit f439141ded
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)