Skip to content

Commit

Permalink
Allow deposits if balance equals required amount
Browse files Browse the repository at this point in the history
  • Loading branch information
ECWireless committed Feb 23, 2024
1 parent 0c54349 commit 9d7bc49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/components/Escrow/DepositFunds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const DepositFunds = ({
const decimals =
paymentType?.value === PAYMENT_TYPES.NATIVE ? 18 : tokenBalance?.decimals;
const hasAmount =
balance > BigInt(amount) * BigInt(10) ** BigInt(decimals || 0);
balance >= BigInt(amount) * BigInt(10) ** BigInt(decimals || 0);

const { handleDeposit, isLoading, isReady } = useDeposit({
invoice,
Expand Down

0 comments on commit 9d7bc49

Please sign in to comment.