Closed adrianhorning08 closed 6 years ago
Its weird cause when I log currentTeam, I see it goes through, but for some reason it gets called again and currentTeam is undefined. Which is weird cause the state says its not....
Turns out my teams reducer was merging all the old state, when I just wanted to merge the currentTeam and override the teams array.
Its weird cause when I log currentTeam, I see it goes through, but for some reason it gets called again and currentTeam is undefined. Which is weird cause the state says its not....