Skip to content

Commit

Permalink
fix: invalidate correct queries after repaying VAI loan
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy committed Aug 3, 2023
1 parent 6e91739 commit 2238ff3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clients/api/mutations/repayVai/useRepayVai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const useRepayVai = (options?: Options) => {
// Invalidate queries related to fetching the user minted VAI amount
queryClient.invalidateQueries(FunctionKey.GET_MINTED_VAI);
queryClient.invalidateQueries(FunctionKey.GET_V_TOKEN_BALANCES_ALL);
queryClient.invalidateQueries(FunctionKey.GET_VAI_REPAY_AMOUNT_WITH_INTERESTS);
queryClient.invalidateQueries(FunctionKey.GET_VAI_CALCULATE_REPAY_AMOUNT);

queryClient.invalidateQueries([
FunctionKey.GET_TOKEN_ALLOWANCE,
Expand Down

0 comments on commit 2238ff3

Please sign in to comment.