Skip to content

Commit 67bdfad

Browse files
Merge branch 'master' of github.com:arthurvasconcelos/vue-izitoast
2 parents 636da42 + 6b4542b commit 67bdfad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function plugin (Vue, options = {}) {
6363
},
6464
_checkEventNames(eventName) {
6565
if (!eventName || eventName.constructor !== String) throw 'Event Name must be a string';
66-
if (eventName !== 'iziToast-open' || eventName !== 'iziToast-close') throw 'Event Name has only two possible values: iziToast-open or iziToast-close';
66+
if (eventName !== 'iziToast-open' && eventName !== 'iziToast-close') throw 'Event Name has only two possible values: iziToast-open or iziToast-close';
6767
},
6868
methods: {
6969
show(message, title = '', options = {}) {

0 commit comments

Comments
 (0)