prevent janky announcement hide

main
Mike Fix 5 years ago
parent a44756b2ab
commit 50fad03fa1

@ -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)

Loading…
Cancel
Save