Skip to content

Commit

Permalink
loading before redurect
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Feb 5, 2023
1 parent 934cc33 commit d9c16ee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/common/components/masa-interface/pages/connected/index.tsx
Expand Up @@ -7,10 +7,12 @@ export const InterfaceConnected = () => {
const { company, loading, closeModal } = useMasa();

useEffect(() => {
setTimeout(() => {
closeModal?.();
}, 3000);
}, []);
if (!loading) {
setTimeout(() => {
closeModal?.();
}, 3000);
}
}, [loading]);

if (loading) return <MasaLoading />;
return (
Expand Down

0 comments on commit d9c16ee

Please sign in to comment.