From 50fad03fa108b38cdd8891f28ce91048b7ca3869 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Wed, 21 Aug 2019 10:34:29 -0700 Subject: [PATCH] prevent janky announcement hide --- components/Announcement.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/components/Announcement.js b/components/Announcement.js index d98f737..527c50c 100644 --- a/components/Announcement.js +++ b/components/Announcement.js @@ -1,7 +1,5 @@ import React from 'react' -import { useAuth } from './AuthContext' - const key = 'CARBON_CTA_1' function Toast() { @@ -14,8 +12,6 @@ function Toast() { } }, []) - const user = useAuth() - if (process.env.NODE_ENV !== 'production') { return null } @@ -24,10 +20,6 @@ function Toast() { return null } - if (user) { - return null - } - function close() { setState(false) window.localStorage.setItem(key, true)