Skip to content

Commit

Permalink
refactor(namadillo): making claim rewards object clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorezende committed Sep 19, 2024
1 parent a6c752d commit 9e02151
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/namadillo/src/atoms/staking/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,9 @@ export const createClaimAndStakeTx = async (
};

export const clearClaimRewards = (accountAddress: string): void => {
queryClient.setQueryData(["claim-rewards", accountAddress], () => ({}));
const emptyClaimRewards = {};
queryClient.setQueryData(
["claim-rewards", accountAddress],
() => emptyClaimRewards
);
};

0 comments on commit 9e02151

Please sign in to comment.