Skip to content

Commit

Permalink
Update welcome page
Browse files Browse the repository at this point in the history
  • Loading branch information
FPT-NMTung committed May 15, 2024
1 parent 74c9c02 commit b555ec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/welcomePage/Welcome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const Welcome = () => {
// check register if login
if (Cookies.get('info') === undefined) {
setStateButton('login')
return
}

// check register service
Expand All @@ -57,7 +58,7 @@ const Welcome = () => {
}, () => {

});
}, [stateButton]);
}, []);

const handleLogin = () => {
const redirect_uri = encodeURIComponent(window.location.origin);
Expand Down

0 comments on commit b555ec2

Please sign in to comment.