From 788fca42440b19b4675d16a1586eada3d86c7c54 Mon Sep 17 00:00:00 2001 From: alejandro soto Date: Tue, 12 Oct 2021 17:53:43 -0600 Subject: [PATCH] bug/26-seo-metatags-fixed-for-ssg --- context/settings.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/context/settings.js b/context/settings.js index a1eb902..2db0ced 100644 --- a/context/settings.js +++ b/context/settings.js @@ -22,7 +22,6 @@ function SettingsProvider({ children }) { } ) const [state, dispatch] = React.useReducer(reducer, savedSettings) - const [hasMounted, setHasMounted] = React.useState(false) const switchCurrency = (currency) => dispatch({ type: 'SWITCH_CURRENCY', payload: currency }) @@ -31,12 +30,6 @@ function SettingsProvider({ children }) { saveSettings(state) }, [state, saveSettings]) - React.useEffect(() => { - setHasMounted(true) - }, []) - - if (!hasMounted) return null - return (