Skip to content

Commit

Permalink
fix: compare input configs with method not operator (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt authored May 24, 2023
1 parent 250f722 commit c000243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/hooks/api/xcm/use-xcm-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const useXCMBridge = (): UseXCMBridge => {
const minInputToBig = Big(inputConfig.minInput.toString());

// Never show less than zero
const transferableBalance = inputConfig.maxInput < inputConfig.minInput ? 0 : maxInputToBig;
const transferableBalance = inputConfig.maxInput.isLessThan(inputConfig.minInput) ? 0 : maxInputToBig;
const currency = XCMBridge.findAdapter(from).getToken(token, from);

const nativeToken = originAdapter.getNativeToken();
Expand Down

2 comments on commit c000243

@vercel
Copy link

@vercel vercel bot commented on c000243 May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on c000243 May 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.