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(() => {
|
React.useEffect(() => {
|
||||||
if (tagCount === 0) {
|
if (tagCount === 0 && showClose) {
|
||||||
setHasClosed(false);
|
setHasClosed(false);
|
||||||
}
|
}
|
||||||
}, [tagCount, setHasClosed]);
|
}, [tagCount, setHasClosed, showClose]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
((showClose && !hasClosed) || !showClose) && (
|
((showClose && !hasClosed) || !showClose) && (
|
||||||
|
|
Loading…
Add table
Reference in a new issue