Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 26ccab8

Browse files
committed
fix notif
1 parent 462c8ee commit 26ccab8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/assets/js/bulma/notifs.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default {
172172
IsVisible(index) {
173173
let dur = this.notif_group[index].duration
174174
175-
if (dur) {
175+
if (dur != undefined || dur != null) {
176176
setTimeout(() => {
177177
this.closeNotif(index)
178178
}, dur * 1000)
@@ -183,7 +183,7 @@ export default {
183183
closeNotif(index) {
184184
this.notif_group[index].show = false
185185
186-
if (typeof this.notif_group[index].onClose != 'undefined' && typeof this.notif_group[index].onClose === 'function') {
186+
if (typeof this.notif_group[index].onClose !== 'undefined' && typeof this.notif_group[index].onClose === 'function') {
187187
this.notif_group[index].onClose()
188188
}
189189
},

0 commit comments

Comments
 (0)