Просмотр исходного кода

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) <noreply@anthropic.com>
zhongyuan.zhao 1 месяц назад
Родитель
Сommit
2270f63c00
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      web/src/components/topup/modals/TopupHistoryModal.jsx

+ 1 - 0
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: '已过期' },
 };