Fix toast not showing up multiple times.
This commit is contained in:
@ -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'
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user