Skip to content

Commit

Permalink
fix main app sometimes being rendered too early
Browse files Browse the repository at this point in the history
  • Loading branch information
duckbytes committed Feb 17, 2024
1 parent 86088e1 commit fc46de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scenes/TenantPicker/TenantListProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ export const TenantListProvider: React.FC<TenantListProviderProps> = ({
configureAmplify(config);
setIsProcessing(false);
} else {
setIsProcessing(false);
setShowList(true);
setIsProcessing(false);
}
} catch (error) {
console.log("couldn't get tenant info:", error);
clearAmplifyConfig();
setIsProcessing(false);
setShowList(true);
setIsProcessing(false);
}
}, [offline]);

Expand Down

0 comments on commit fc46de8

Please sign in to comment.