Fix toast not showing up multiple times.
parent
268bbe52e6
commit
5c1453bbaa
|
@ -246,7 +246,9 @@ export default Actions({
|
|||
toast: {
|
||||
title: 'Congratulations!',
|
||||
message: 'Hike completed',
|
||||
id: state.toast && state.toast.id ? state.toast.id + 1 : 0,
|
||||
id: state.toast && typeof state.toast.id === 'number' ?
|
||||
state.toast.id + 1 :
|
||||
0,
|
||||
type: 'success'
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue