From 2270f63c006abe9f9774c2472419c65eafefbf6e Mon Sep 17 00:00:00 2001 From: "zhongyuan.zhao" Date: Wed, 18 Mar 2026 15:55:09 +0800 Subject: [PATCH] fix(topup): add 'failed' status badge mapping in TopupHistoryModal The backend defines TopUpStatusFailed = "failed" but the frontend STATUS_CONFIG was missing this status, causing raw text display instead of a styled danger badge. Co-Authored-By: Claude Opus 4.6 (1M context) --- web/src/components/topup/modals/TopupHistoryModal.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/components/topup/modals/TopupHistoryModal.jsx b/web/src/components/topup/modals/TopupHistoryModal.jsx index 95f4e878..9659e929 100644 --- a/web/src/components/topup/modals/TopupHistoryModal.jsx +++ b/web/src/components/topup/modals/TopupHistoryModal.jsx @@ -43,6 +43,7 @@ const { Text } = Typography; const STATUS_CONFIG = { success: { type: 'success', key: '成功' }, pending: { type: 'warning', key: '待支付' }, + failed: { type: 'danger', key: '失败' }, expired: { type: 'danger', key: '已过期' }, };