update leaderboard schema to match new API wire format with flattened FL points

This commit is contained in:
2026-03-01 16:41:16 +01:00
parent adf123f56a
commit e2f86fbcb6
5 changed files with 57 additions and 16 deletions

View File

@@ -20,7 +20,7 @@ export function PointsTableEditor({ pointsTable, onChange }: PointsTableEditorPr
const pos = pointsTable.length + 1;
onChange([
...pointsTable,
{ points: 0, label: `P${pos}`, color: '#374151', textColor: '#ffffff', priority: pos }
{ id: crypto.randomUUID(), points: 0, label: `P${pos}`, color: '#374151', textColor: '#ffffff', priority: pos }
]);
};