Skip to content

Commit

Permalink
chore: rm toAmount formatting bc TextField handles that
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Nov 4, 2024
1 parent 71afb69 commit ca66c36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions ui/ducks/bridge/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ export const getToAmount = createSelector(getRecommendedQuote, (quote) =>
quote.quote.destTokenAmount,
quote.quote.destAsset.decimals,
)
.toFixed(3)
.toString()
: undefined,
);

Expand Down
2 changes: 1 addition & 1 deletion ui/pages/bridge/prepare/prepare-bridge-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const PrepareBridgePage = () => {
testId: 'to-amount',
readOnly: true,
disabled: true,
value: toAmount ?? '0',
value: toAmount?.toString() ?? '0',
className: toAmount ? 'amount-input defined' : 'amount-input',
}}
/>
Expand Down

0 comments on commit ca66c36

Please sign in to comment.