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)