Skip to content

Commit

Permalink
Refetch usdc balance
Browse files Browse the repository at this point in the history
  • Loading branch information
asoong committed Nov 8, 2023
1 parent e5f5c1f commit 6478aba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/Deposit/NewPosition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const NewPosition: React.FC<NewPositionProps> = ({
const { isLoggedIn } = useAccount();
const { rampAddress, rampAbi, usdcAddress, usdcAbi } = useSmartContracts()
const { minimumDepositAmount } = useRampState()
const { usdcApprovalToRamp, usdcBalance, refetchUsdcApprovalToRamp } = useBalances()
const { usdcApprovalToRamp, usdcBalance, refetchUsdcApprovalToRamp, refetchUsdcBalance } = useBalances()
const { refetchDeposits } = useDeposits()
const { extractedVenmoId, registrationHash } = useRegistration();

Expand Down Expand Up @@ -139,6 +139,7 @@ export const NewPosition: React.FC<NewPositionProps> = ({
console.log('writeSubmitApproveAsync successful: ', data);

refetchUsdcApprovalToRamp?.();
refetchUsdcBalance?.();
},
});

Expand Down

0 comments on commit 6478aba

Please sign in to comment.