Skip to content

Commit

Permalink
fix(MdSnackbar): add "persistent" argument to createPromise()
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenwaffle authored and Samuell1 committed Jun 7, 2018
1 parent d8dc038 commit c7e8df8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/MdSnackbar/MdSnackbarQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ export const destroySnackbar = () => {
})
}

export const createSnackbar = (duration, context) => {
export const createSnackbar = (duration, persistent, context) => {
if (currentSnackbar) {
return destroySnackbar().then(() => {
return createPromise(duration, context)
return createPromise(duration, persistent, context)
})
}

return createPromise(duration, context)
return createPromise(duration, persistent, context)
}

0 comments on commit c7e8df8

Please sign in to comment.