fix(panel): add GAME_BET and GAME_WIN to transaction type config
Some checks failed
Deploy to Production / test (push) Failing after 30s

Missing TYPE_CONFIG entries caused both transaction types to fall back to
sign: "+", making bet deductions appear as credits in the admin panel.
The actual economy values were correct (negative for bets).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
syntaxbullet
2026-04-06 12:59:41 +02:00
parent 96eba8270c
commit 0fc88323ea

View File

@@ -51,6 +51,8 @@ const TYPE_CONFIG: Record<string, { label: string; color: string; sign: "+" | "-
ITEM_USE: { label: "Item Use", color: "bg-gray-500/20 text-gray-400", sign: "-" },
LOOTBOX: { label: "Lootbox", color: "bg-purple-500/20 text-purple-400", sign: "-" },
EXAM_REWARD: { label: "Exam Reward", color: "bg-emerald-500/20 text-emerald-400",sign: "+" },
GAME_BET: { label: "Game Bet", color: "bg-orange-500/20 text-orange-400", sign: "-" },
GAME_WIN: { label: "Game Win", color: "bg-green-500/20 text-green-400", sign: "+" },
};
const TRANSACTION_TYPES = Object.keys(TYPE_CONFIG);