Skip to content

Commit 317ddcc

Browse files
t
1 parent e29e0ef commit 317ddcc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react/src/auth/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export const isSessionSignedIn = (session: GadgetSession) => {
99
};
1010

1111
export function windowNavigate(path: string) {
12-
return window.location.assign(path);
12+
return window?.location?.assign(path);
1313
}

0 commit comments

Comments
 (0)