Prevent undefined class name lol

This commit is contained in:
Lim Chee Aun 2023-10-16 20:21:09 +08:00
parent 42db913b22
commit e153f9f541

View file

@ -63,7 +63,7 @@ function NotificationsLink() {
to="/notifications"
class={`button plain notifications-button ${
snapStates.notificationsShowNew ? 'has-badge' : ''
} ${menuState}`}
} ${menuState || ''}`}
onClick={(e) => {
e.stopPropagation();
if (window.matchMedia('(min-width: calc(40em))').matches) {