diff --git a/src/SnackbarProvider.js b/src/SnackbarProvider.js index c578737d..6a3f76a7 100644 --- a/src/SnackbarProvider.js +++ b/src/SnackbarProvider.js @@ -49,7 +49,7 @@ class SnackbarProvider extends Component { * @returns generated or user defined key referencing the new snackbar or null */ enqueueSnackbar = (message, { key, preventDuplicate, ...options } = {}) => { - if (preventDuplicate || this.props.preventDuplicate) { + if ((preventDuplicate === undefined && this.props.preventDuplicate) || preventDuplicate) { const inQueue = this.queue.findIndex(item => item.message === message) > -1; const inView = this.state.snacks.findIndex(item => item.message === message) > -1; if (inQueue || inView) {