Fix toast not showing up multiple times.

pull/5960/head
Berkeley Martinez 2016-01-08 21:43:53 -08:00
parent 268bbe52e6
commit 5c1453bbaa
1 changed files with 3 additions and 1 deletions

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