diff --git a/common/app/flux/Actions.js b/common/app/flux/Actions.js index 3a0915be93..8fb5025d0a 100644 --- a/common/app/flux/Actions.js +++ b/common/app/flux/Actions.js @@ -43,9 +43,13 @@ export default Actions({ toast(args) { return { transform(state) { - const id = state.toast && state.toast.id ? state.toast.id : 0; - const toast = { ...args, id: id + 1 }; - return { ...state, toast }; + return { + ...state, + toast: { + ...args, + id: state.toast && state.toast.id ? state.toast.id : 1 + } + }; } }; },