ignore unknown values
This commit is contained in:
@@ -35,7 +35,11 @@ export function GermButton({
|
|||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
const {currentAccount} = useSession()
|
const {currentAccount} = useSession()
|
||||||
|
|
||||||
if (germ.showButtonTo === 'none') {
|
// exclude `none` and all unknown values
|
||||||
|
if (
|
||||||
|
germ.showButtonTo !== 'everyone' ||
|
||||||
|
germ.showButtonTo !== 'usersIFollow'
|
||||||
|
) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user