fix chat opening on window resize

This commit is contained in:
HF 2020-05-11 13:59:05 +02:00
parent 0b3afeb6e0
commit 9d1ff296aa

View File

@ -30,7 +30,7 @@ function ChatBox({
};
const { width } = useWindowSize();
if (width < 604) {
if (width < 604 && chatOpen) {
triggerModal();
}