Bug fixes.

This commit is contained in:
Mike Cao 2021-01-20 19:11:36 -08:00
parent 13dddb3764
commit 4217e890fc
3 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ export default function MenuButton({
}
useDocumentClick(e => {
if (!ref.current.contains(e.target)) {
if (!ref.current?.contains(e.target)) {
setShowMenu(false);
}
});