mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 23:18:10 +00:00
fix: useEffect() syntax and formatting
This commit is contained in:
parent
cfe86b00aa
commit
57a2650e8d
@ -234,13 +234,14 @@ const App: React.FC = () => {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const searchParam = new URLSearchParams(window.location.search)
|
||||
const userToken = searchParam.get('token')
|
||||
const searchParam = new URLSearchParams(window.location.search);
|
||||
const userToken = searchParam.get("token");
|
||||
|
||||
if (userToken) {
|
||||
setLocalToken(userToken);
|
||||
setToken(userToken);
|
||||
}, [])
|
||||
}
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="container">
|
||||
|
Loading…
x
Reference in New Issue
Block a user