feat(admin, i18n): enhance reports, draws, config, and player workflows
This commit is contained in:
@@ -214,15 +214,15 @@ export function JackpotPoolsConsole({ embedded = false }: JackpotPoolsConsolePro
|
||||
const manualBurst = async (p: AdminJackpotPoolRow) => {
|
||||
const d = drafts[p.id];
|
||||
if (!d) return;
|
||||
const drawId = Number.parseInt(d.manual_burst_draw_id, 10);
|
||||
if (!Number.isFinite(drawId) || drawId <= 0) {
|
||||
const drawRef = d.manual_burst_draw_id.trim();
|
||||
if (drawRef.length === 0) {
|
||||
toast.error(t("invalidDrawId"));
|
||||
return;
|
||||
}
|
||||
|
||||
setBurstingId(p.id);
|
||||
try {
|
||||
const res = await postAdminJackpotManualBurst(p.id, { draw_id: drawId });
|
||||
const res = await postAdminJackpotManualBurst(p.id, { draw_id: drawRef });
|
||||
toast.success(
|
||||
`${t("manualBurstSuccess")} · ${res.draw_no} · ${res.winner_count} ${t("winnerCount")}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user