Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarajohn committed Mar 13, 2024
1 parent bcce0f8 commit f51b2a1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/providers/Toolbox/Toolbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ function AuthenticationWrapper({ children }: { children: ReactNode }) {
* - in case of no organization id pass the first fetched organization from the above list and re-fetch a token
*/
useEffect(() => {
// console.log(1);
if (!systemLoading && !isLoading) {
setSystemLoading(true);
(async () => {
// console.log(2);
// moving this will affect the app. If this is moved below when clearing the storage the app constantly refresh
const response = await getAccessTokenSilently();
// @TODO in the future we must define the org_id
Expand Down

0 comments on commit f51b2a1

Please sign in to comment.