File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
apps/renderer/src/modules/power/transaction-section Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,7 @@ const BalanceRenderer = ({
162
162
amount : NonNullable < ReturnType < typeof useWalletTransactions > [ "data" ] > [ number ] [ "powerToken" ]
163
163
tax : NonNullable < ReturnType < typeof useWalletTransactions > [ "data" ] > [ number ] [ "tax" ]
164
164
} ) => {
165
- // tax free or 100% tax
166
- const showTax = tax !== "0" && tax !== amount
165
+ const hideTax = sign === "-" || tax === "0"
167
166
return (
168
167
< div
169
168
className = { cn ( "flex items-center" , {
@@ -173,7 +172,7 @@ const BalanceRenderer = ({
173
172
>
174
173
{ sign }
175
174
< Balance className = "mr-1" > { amount } </ Balance >
176
- { showTax && (
175
+ { ! hideTax && (
177
176
< span className = "text-xs text-gray-500" >
178
177
(-< Balance > { tax } </ Balance > )
179
178
</ span >
You can’t perform that action at this time.
0 commit comments