prevent janky announcement hide

main
Mike Fix 5 years ago
parent a44756b2ab
commit 50fad03fa1

@ -1,7 +1,5 @@
import React from 'react' import React from 'react'
import { useAuth } from './AuthContext'
const key = 'CARBON_CTA_1' const key = 'CARBON_CTA_1'
function Toast() { function Toast() {
@ -14,8 +12,6 @@ function Toast() {
} }
}, []) }, [])
const user = useAuth()
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
return null return null
} }
@ -24,10 +20,6 @@ function Toast() {
return null return null
} }
if (user) {
return null
}
function close() { function close() {
setState(false) setState(false)
window.localStorage.setItem(key, true) window.localStorage.setItem(key, true)

Loading…
Cancel
Save