Add FamDone Brand component and add rewards count system

This commit is contained in:
JCEEE
2026-09-02 13:32:11 +01:00
parent eaa5104817
commit 1360799b60
11 changed files with 123 additions and 54 deletions
+4
View File
@@ -513,6 +513,10 @@ async function ensureBonusFields(): Promise<void> {
changed = true;
}
}
if (name === 'bonus_configs' && !has('targetChoreId')) {
fields.push({ name: 'targetChoreId', type: 'text', required: false });
changed = true;
}
// rewardValue must be optional so an unset pocket-money droplet can exist.
const rv = fields.find((f: any) => f.name === 'rewardValue');
if (rv && rv.required) {