diff --git a/web/src/components/topup/RechargeCard.jsx b/web/src/components/topup/RechargeCard.jsx index 3fc14722..f37d129b 100644 --- a/web/src/components/topup/RechargeCard.jsx +++ b/web/src/components/topup/RechargeCard.jsx @@ -291,11 +291,11 @@ const RechargeCard = ({ style={{ width: '100%' }} /> + {payMethods && payMethods.filter(m => m.type !== 'waffo').length > 0 && ( - {payMethods && payMethods.length > 0 ? ( - {payMethods.map((payMethod) => { + {payMethods.filter(m => m.type !== 'waffo').map((payMethod) => { const minTopupVal = Number(payMethod.min_topup) || 0; const isStripe = payMethod.type === 'stripe'; const disabled = @@ -355,13 +355,9 @@ const RechargeCard = ({ ); })} - ) : ( -
- {t('暂无可用的支付方式,请联系管理员配置')} -
- )}
+ )} )}