mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 16:40:05 +00:00
remove fraction digits on topup credit number (#7345)
## Summary Don't show fraction digits on credits in the topup dialog. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7345-remove-fraction-digits-on-topup-credit-number-2c66d73d365081028ef8cf73113dd20c) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -64,7 +64,8 @@ const formattedCreditsOnly = computed(() => {
|
||||
const cents = authStore.balance?.amount_micros ?? 0
|
||||
const amount = formatCreditsFromCents({
|
||||
cents,
|
||||
locale: locale.value
|
||||
locale: locale.value,
|
||||
numberOptions: { minimumFractionDigits: 0, maximumFractionDigits: 0 }
|
||||
})
|
||||
return amount
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user