fix: system config checkbox not showing state

This commit is contained in:
sk1982 2024-04-02 02:01:30 -04:00
parent 5f186ee26d
commit 4c16d0427b

View File

@ -44,7 +44,7 @@ export const SystemConfig = ({ config: initialConfig }: SystemConfigProps) => {
Allow users to add cards
<Checkbox size="lg" className="ml-auto" isDisabled={loading}
checked={config.allow_user_add_card}
isSelected={config.allow_user_add_card}
onValueChange={v => setConfigKey('allow_user_add_card', v)} />
<span className="w-full mt-2 text-xs sm:text-sm text-gray-500">