From 78dd8b1851da9acd3ed35753c96191638948c52c Mon Sep 17 00:00:00 2001 From: Siwoo Lee Date: Wed, 5 Jun 2024 13:42:30 +0900 Subject: [PATCH] Fix: WaterPerCoffee & pwabuilder --- public/pwabuilder-sw.js | 3 +-- src/components/home/WaterPerCoffee.tsx | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/pwabuilder-sw.js b/public/pwabuilder-sw.js index 39a3193..9e34323 100644 --- a/public/pwabuilder-sw.js +++ b/public/pwabuilder-sw.js @@ -1,4 +1,4 @@ -const STATIC_CACHE_NAME = 'ddocker-static-v9'; +const STATIC_CACHE_NAME = 'ddocker-static-v1'; const DYNAMIC_CACHE_NAME = 'ddocker-dynamic-v1'; const ASSETS = [ @@ -180,6 +180,5 @@ const handleError = error => { self.addEventListener('fetch', event => { if (event.request.headers.get('Accept') === 'text/event-stream') return; - if (event.request.url.includes('SignIn')) return; event.respondWith(cacheOrFetch(event.request).catch(handleError)); }); diff --git a/src/components/home/WaterPerCoffee.tsx b/src/components/home/WaterPerCoffee.tsx index 5873665..f995bdb 100644 --- a/src/components/home/WaterPerCoffee.tsx +++ b/src/components/home/WaterPerCoffee.tsx @@ -30,7 +30,8 @@ const { anonymous, signedIn } = TODAY_CAFFEINE_INFO_TEXTS; const WaterPerCoffee = () => { const user = useRecoilValue(userInfoState); const { coffeeInfo: todayCoffeeData } = useGetTodayCoffeeData(); - + const navigateToStart = useNavigateTo('/start/1'); + const navigateToRegister = useNavigateTo('/post/register'); return ( { text={anonymous.card} actionText={BUTTON_TEXTS.signIn1} btn={true} - fn={useNavigateTo('/start/1')} + fn={navigateToStart} /> @@ -58,7 +59,7 @@ const WaterPerCoffee = () => {