Skip to content

Commit 373f72e

Browse files
refactor(token-input): remove redundant testnet guard and unnecessary cast in USD value render
1 parent e8fcfcd commit 373f72e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/components/sharedComponents/TokenInput

src/components/sharedComponents/TokenInput/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@ const TokenInput: FC<Props> = ({
190190
<EstimatedUSDValue>
191191
{estimatedUSDValue === null ? (
192192
NO_PRICE_DATA_LABEL
193-
) : selectedToken && !isTestnetChain && (isLoadingPrice || isLoadingBalance) ? (
193+
) : selectedToken && (isLoadingPrice || isLoadingBalance) ? (
194194
<Spinner size="sm" />
195195
) : (
196-
`~$${(estimatedUSDValue as number).toFixed(2)}`
196+
`~$${estimatedUSDValue.toFixed(2)}`
197197
)}
198198
</EstimatedUSDValue>
199199
<Balance>

0 commit comments

Comments
 (0)