Skip to content

Commit

Permalink
fix: fetch tiers on initial render
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Dec 10, 2022
1 parent be2cdc2 commit 2e928bb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,11 @@ export const TieredSalesProvider = ({
[doApprove, onApproveSuccess, refetchTiers],
);

useEffect(() => {
refetchTiers();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

const value = {
data: {
env,
Expand Down

0 comments on commit 2e928bb

Please sign in to comment.