Commit d30ae820 by skynono

fix: balance unit sync

parent e1039c67
...@@ -6,7 +6,7 @@ import { ...@@ -6,7 +6,7 @@ import {
showSuccess, showSuccess,
timestamp2string, timestamp2string,
renderGroup, renderGroup,
renderNumberWithPoint, renderQuotaWithAmount,
renderQuota renderQuota
} from '../../helpers/index.js'; } from '../../helpers/index.js';
...@@ -328,7 +328,7 @@ const ChannelsTable = () => { ...@@ -328,7 +328,7 @@ const ChannelsTable = () => {
{renderQuota(record.used_quota)} {renderQuota(record.used_quota)}
</Tag> </Tag>
</Tooltip> </Tooltip>
<Tooltip content={t('剩余额度') + record.balance + t(',点击更新')}> <Tooltip content={t('剩余额度$') + record.balance + t(',点击更新')}>
<Tag <Tag
color='white' color='white'
type='ghost' type='ghost'
...@@ -336,7 +336,7 @@ const ChannelsTable = () => { ...@@ -336,7 +336,7 @@ const ChannelsTable = () => {
shape='circle' shape='circle'
onClick={() => updateChannelBalance(record)} onClick={() => updateChannelBalance(record)}
> >
${renderNumberWithPoint(record.balance)} {renderQuotaWithAmount(record.balance)}
</Tag> </Tag>
</Tooltip> </Tooltip>
</Space> </Space>
......
...@@ -764,7 +764,7 @@ export function renderQuotaWithAmount(amount) { ...@@ -764,7 +764,7 @@ export function renderQuotaWithAmount(amount) {
if (displayInCurrency) { if (displayInCurrency) {
return '$' + amount; return '$' + amount;
} else { } else {
return renderUnitWithQuota(amount); return renderNumber(renderUnitWithQuota(amount));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment