Skip to content

Commit

Permalink
Merge pull request #412 from wigwamapp/undefined-fee
Browse files Browse the repository at this point in the history
Set undefined fee
  • Loading branch information
serg-plusplus authored Mar 14, 2024
2 parents 3342e30 + 612f65d commit 905e715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/screens/mainPages/Swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Swap: FC = () => {
const { currentAccount } = useAccounts();
const chainId = useChainId();
const tokenSlug = useAtomValue(tokenSlugAtom);
const [fee, setFee] = useState(0.01);
const [fee, setFee] = useState<number | undefined>(undefined);
const [chainsOrder, setChainsOrder] = useState<number[] | null>(null);

const accountNativeTokens = useLazyAtomValue(
Expand Down Expand Up @@ -75,7 +75,7 @@ const Swap: FC = () => {
const nftBalance = await contract.balanceOf(currentAccount.address);

if (Boolean(nftBalance)) {
setFee(0);
setFee(undefined);
}
};

Expand Down

0 comments on commit 905e715

Please sign in to comment.