Skip to content

Commit

Permalink
Trocando o removeItem por clear - Front-end. - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielSS187 committed Feb 11, 2023
1 parent b8c12c2 commit e6aaf67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front-end/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ export function App () {
};

//* Notificar sucesso apos o login
if ( success !== "null" && success === "success" ){
if ( success !== null && success === "success" ){
toast.success("Login successfully.", {
toastId: `${id}:success-s`
});
};

window.onload = () => {
localStorage.removeItem("success");
localStorage.clear();
};
}, [signInFunction.isSuccess, userIsAuthenticated]);

Expand Down

1 comment on commit e6aaf67

@vercel
Copy link

@vercel vercel bot commented on e6aaf67 Feb 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.