Skip to content

Commit

Permalink
Update src/__swaps__/screens/Swap/hooks/useSwapInputsController.ts
Browse files Browse the repository at this point in the history
Co-authored-by: gregs <[email protected]>
  • Loading branch information
walmat and greg-schrammel authored Jun 10, 2024
1 parent ff2db74 commit 35b3c2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { queryClient } from '@/react-query';
import { divWorklet, equalWorklet, greaterThanWorklet, mulWorklet, toFixedWorklet } from '@/__swaps__/safe-math/SafeMath';

function getInitialInputValues(initialSelectedInputAsset: ExtendedAnimatedAssetWithColors | null) {
const initialBalance = initialSelectedInputAsset ? Number(initialSelectedInputAsset?.balance.amount) : 0;
const initialBalance = Number(initialSelectedInputAsset?.balance.amount) || 0;
const initialNiceIncrement = findNiceIncrement(initialBalance);
const initialDecimalPlaces = countDecimalPlaces(initialNiceIncrement);

Expand Down

0 comments on commit 35b3c2c

Please sign in to comment.