Skip to content

Commit

Permalink
Convert - Fix Zero Input bug
Browse files Browse the repository at this point in the history
  • Loading branch information
uncoolzero committed Oct 24, 2023
1 parent e356796 commit 6e22482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ui/src/components/Silo/Actions/Convert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const ConvertForm: FC<
}

function showOutputBDV() {
return MaxBN(depositsBDV, bdvOut);
return MaxBN(depositsBDV || ZERO_BN, bdvOut || ZERO_BN);
}

/// When a new output token is selected, reset maxAmountIn.
Expand Down

0 comments on commit 6e22482

Please sign in to comment.