Skip to content

Commit c7e8df8

Browse files
hiddenwaffleSamuell1
authored andcommitted
fix(MdSnackbar): add "persistent" argument to createPromise()
1 parent d8dc038 commit c7e8df8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/MdSnackbar/MdSnackbarQueue.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ export const destroySnackbar = () => {
3333
})
3434
}
3535

36-
export const createSnackbar = (duration, context) => {
36+
export const createSnackbar = (duration, persistent, context) => {
3737
if (currentSnackbar) {
3838
return destroySnackbar().then(() => {
39-
return createPromise(duration, context)
39+
return createPromise(duration, persistent, context)
4040
})
4141
}
4242

43-
return createPromise(duration, context)
43+
return createPromise(duration, persistent, context)
4444
}

0 commit comments

Comments
 (0)