Closed gabrielroriz closed 5 years ago
@gabrielroriz nice find man!. Thanks for reporting this, someone actually made a PR to fix this a couple of weeks back but it was a bit weird and they ended up closing it.
@RobPando
Nice, Rob! It's good to contribute with this project that's helping me a lot in my project.
Can I make a PR to solve it ir or it's a thing that you need to do? :smile:
I'm here if you need me.
(I'm asking because I don't have any experience with contribution in open source projects but I would like to contribute)
@gabrielroriz sure!, best time to get do your first contribution. Go ahead and make a PR with the changed. I do have a suggestion however, for the conditional check you can either use lodash
which is a dependency, you can use if (_.get(action, 'payload.offline'))
or just do if (action.payload && action.payload.offline)
Closed by #20
In reducer.js,
It's needed to verify if
action.payload
is undefined instead of use this variable directly. I found this problem when I reinstall the app, I got an error because the application was trying to readaction.payload.offline
whileaction.payload
was an undefined variable.Suggestion:
From:
To: