Skip to content

Commit

Permalink
Update useLogout.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewguywright committed Mar 4, 2024
1 parent 665b377 commit 261d953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/faustwp-core/src/hooks/useLogout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function useLogout() {
return;
}

const isPreview = window.location.search.includes('preview=true');
const isPreview = window?.location?.search?.includes('preview=true');

if (redirectUrl) {
window.location.assign(redirectUrl);
Expand Down

0 comments on commit 261d953

Please sign in to comment.