[Bug] 实付金额在 USD 展示模式下仍显示"元"(CNY)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start in web/src/components/topup/index.jsx, inspect the renderAmount function and how PaymentConfirmModal uses it. Check how quota_display_type is available in the recharge view, then verify that USD mode displays the amount with “USD” instead of “元” in both locations.
Written by the indexing model from the issue text.
Description
Routine Checks
- I have confirmed there are no similar issues currently
- I have confirmed I have upgraded to the latest version
- I have thoroughly read the project README, especially the FAQ section
- I understand and am willing to follow up on this issue, assist with testing and provide feedback
- I understand and acknowledge the above, and understand that project maintainers have limited time and energy, issues that do not follow the rules may be ignored or closed directly
Issue Description
运营设置 → 额度展示类型设为 USD → 充值页面顶部"实付金额"仍显示 x 元
Steps to Reproduce
web/src/components/topup/index.jsx 的 renderAmount 函数硬编码了 元,未读取 quota_display_type,PaymentConfirmModal 也用了同一函数,同样受影响
Expected Result
运营设置 → 额度展示类型设为 USD → 充值页面顶部"实付金额"显示为 “x USD”
- Dominant language
- Go
- Stars
- 48.5k
- Forks
- 11.6k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 61
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from QuantumNous/new-api
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
QuantumNous/new-api#7511 · 1 comment ·
-
fix(relay): terminal stream chunk with finish_reason is dropped when client does not request usage Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
QuantumNous/new-api#7489 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
QuantumNous/new-api#7479 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
QuantumNous/new-api#7467 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
QuantumNous/new-api#7417 · 1 comment ·
All issues in QuantumNous/new-api
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100