Fix document type guard

This commit is contained in:
Sam Becker 2025-02-24 09:28:19 -06:00
parent 7530e6f48f
commit 2b44a5fa04

View File

@ -23,7 +23,7 @@ export default function useRecipeState({
...pathComponents
} = getPathComponents(pathname);
const searchParamShow = document?.location
const searchParamShow = typeof document !== 'undefined'
? (new URLSearchParams(document.location.search)).get(SEARCH_PARAM_SHOW)
: undefined;