Skip to content

Commit

Permalink
remove membership tiers cache on login
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Apr 26, 2024
1 parent d548cfb commit a779bdb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ts/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class App extends React.Component<object, State> {

UtilData.onInfo(account.info);
UtilData.onAuth({}, cb);
UtilData.onAuthOnce();
UtilData.onAuthOnce(false);
};
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/ts/component/page/auth/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const PageAuthLogin = observer(class PageAuthLogin extends React.Component<I.Pag
UtilData.onInfo(message.account.info);
Animation.from(() => {
UtilData.onAuth();
UtilData.onAuthOnce();
UtilData.onAuthOnce(true);

this.isSelecting = false;
});
Expand Down
2 changes: 1 addition & 1 deletion src/ts/component/page/auth/onboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ const PageAuthOnboard = observer(class PageAuthOnboard extends React.Component<I
};

UtilData.onAuth({ routeParam });
UtilData.onAuthOnce();
UtilData.onAuthOnce(true);
});
};

Expand Down
2 changes: 1 addition & 1 deletion src/ts/component/page/auth/setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const PageAuthSetup = observer(class PageAuthSetup extends React.Component<I.Pag
UtilData.onAuth({ routeParam: { animate } });
};

UtilData.onAuthOnce();
UtilData.onAuthOnce(false);
analytics.event('SelectAccount', { middleTime: message.middleTime });
});
};
Expand Down
2 changes: 1 addition & 1 deletion src/ts/lib/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class Action {
};

UtilData.onAuth({ routeParam });
UtilData.onAuthOnce();
UtilData.onAuthOnce(true);
});
});
});
Expand Down
4 changes: 2 additions & 2 deletions src/ts/lib/util/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class UtilData {
});
};

onAuthOnce () {
onAuthOnce (noTierCache: boolean) {
C.NotificationList(false, Constant.limit.notification, (message: any) => {
if (!message.error.code) {
notificationStore.set(message.list);
Expand All @@ -243,7 +243,7 @@ class UtilData {
};
});

this.getMembershipTiers(false);
this.getMembershipTiers(noTierCache);
this.getMembershipStatus();
};

Expand Down

0 comments on commit a779bdb

Please sign in to comment.