Fix toast not showing up multiple times.
This commit is contained in:
@ -246,7 +246,9 @@ export default Actions({
|
|||||||
toast: {
|
toast: {
|
||||||
title: 'Congratulations!',
|
title: 'Congratulations!',
|
||||||
message: 'Hike completed',
|
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'
|
type: 'success'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user