welcome tags only shows on 0 tags

This commit is contained in:
jessop 2019-10-16 10:42:50 -04:00 committed by Sean Yesmunt
parent 7af4a63400
commit ab9bce2dca

View file

@ -58,10 +58,10 @@ export default function TagsSelect(props: Props) {
}
React.useEffect(() => {
if (tagCount === 0) {
if (tagCount === 0 && showClose) {
setHasClosed(false);
}
}, [tagCount, setHasClosed]);
}, [tagCount, setHasClosed, showClose]);
return (
((showClose && !hasClosed) || !showClose) && (