Skip to content

Commit 68a6b6b

Browse files
committed
nit fixes
1 parent 525deb8 commit 68a6b6b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/routes/home/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ import { useEffect } from 'preact/hooks';
33
import style from "./style";
44

55
const Home = () => {
6+
7+
/**
8+
* Netlify CMS's accept invite link land on home page.
9+
* This redirection takes it to the right place(/admin).
10+
*/
11+
612
useEffect(() => {
713
if (window !== undefined && window.location.href.includes('#invite_token')) {
814
const { href } = window.location;
@@ -47,6 +53,6 @@ const Home = () => {
4753
</div>
4854
</div>
4955
);
50-
}
56+
};
5157

5258
export default Home;

0 commit comments

Comments
 (0)