Skip to content

Commit 019d65a

Browse files
committed
fix
1 parent 33e5bfb commit 019d65a

File tree

1 file changed

+1
-1
lines changed
  • packages/neuron-ui/src/components/FormattedTokenAmount

1 file changed

+1
-1
lines changed

packages/neuron-ui/src/components/FormattedTokenAmount/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const FormattedTokenAmount = ({ item, show, symbolClassName }: FormattedT
5858
if (item.sudtInfo.sUDT.decimal) {
5959
sudtAmount = sUDTAmountFormatter(sudtValueToAmount(item.sudtInfo.amount, item.sudtInfo.sUDT.decimal))
6060
copyText = `${sudtValueToAmount(item.sudtInfo.amount, item.sudtInfo.sUDT.decimal)} ${item.sudtInfo.sUDT.symbol}`
61-
if (!sudtAmount.includes('-') && item.type === 'destroy') {
61+
if (!sudtAmount.includes('-') && ['destroy', 'send'].includes(item.type)) {
6262
sudtAmount = `-${sudtAmount}`
6363
}
6464
isReceive = !sudtAmount.includes('-')

0 commit comments

Comments
 (0)