From e0e675433e08d9e619a24becf8aaf4c7355460fe Mon Sep 17 00:00:00 2001 From: Jorge Acosta Date: Fri, 8 Mar 2024 17:24:00 -0500 Subject: [PATCH 1/2] Remove SSR settings --- CHANGELOG.md | 3 +++ react/hooks/useAppSettings.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6252203..26bd4d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed +- Remove SSR settings + ## [1.3.0] - 2024-02-09 ### Added diff --git a/react/hooks/useAppSettings.ts b/react/hooks/useAppSettings.ts index 787fbd9..cff0b0a 100644 --- a/react/hooks/useAppSettings.ts +++ b/react/hooks/useAppSettings.ts @@ -9,7 +9,7 @@ interface Settings { } const useAppSettings = (): Settings => { - const { data } = useQuery(GET_SETTINGS, { ssr: false }) + const { data } = useQuery(GET_SETTINGS, {}) if (data?.publicSettingsForApp?.message) { const { disableOffers } = JSON.parse(data.publicSettingsForApp.message) From b5dd9caf1e0084fb06a30759fd836e6f458a8039 Mon Sep 17 00:00:00 2001 From: Jorge Acosta Date: Fri, 8 Mar 2024 17:52:15 -0500 Subject: [PATCH 2/2] Remove Brackets --- react/hooks/useAppSettings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/hooks/useAppSettings.ts b/react/hooks/useAppSettings.ts index cff0b0a..c6223e4 100644 --- a/react/hooks/useAppSettings.ts +++ b/react/hooks/useAppSettings.ts @@ -9,7 +9,7 @@ interface Settings { } const useAppSettings = (): Settings => { - const { data } = useQuery(GET_SETTINGS, {}) + const { data } = useQuery(GET_SETTINGS) if (data?.publicSettingsForApp?.message) { const { disableOffers } = JSON.parse(data.publicSettingsForApp.message)