Fix toast not showing up multiple times.

This commit is contained in:
Berkeley Martinez
2016-01-08 21:43:53 -08:00
parent 392fb281e5
commit 66c04513cb

View File

@ -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'
}
};