welcome tags only shows on 0 tags
This commit is contained in:
parent
7af4a63400
commit
ab9bce2dca
1 changed files with 2 additions and 2 deletions
|
@ -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) && (
|
||||
|
|
Loading…
Reference in a new issue