We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 636da42 + 6b4542b commit 67bdfadCopy full SHA for 67bdfad
src/index.js
@@ -63,7 +63,7 @@ export default function plugin (Vue, options = {}) {
63
},
64
_checkEventNames(eventName) {
65
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';
+ if (eventName !== 'iziToast-open' && eventName !== 'iziToast-close') throw 'Event Name has only two possible values: iziToast-open or iziToast-close';
67
68
methods: {
69
show(message, title = '', options = {}) {
0 commit comments