Closed ONourry closed 7 years ago
Front end looks good to me
@simon-bourque let me test this.
The devtool is returning an undefined in the console. It doesnt bother the creation process though. I'll still remove it since it we obviously dont want it.
The type error V has been there for quite a while now. It's probably on the main too. I dont get any other error when creating a user
@jacobrs Have you tested this yet? Is it working good?
You're right there seems to be another error triggered. This one does not prevent the user creation either though. I will try to find what is triggering it but overall it doesn't seem to have any impact on any functionality.
After investigating this error. The issue seems to be with these lines in the UserReducer file:
case ADD_USER : return { data: [action.user, ...state.data], };
The state.data property returns undefined initially. If a user is created and then the website is refreshed, the error never appears again. If no refresh is done, the error will keep showing up for every user created. The user creation however, is done normally every time regardless if the error shows up in console or not. This lets me think that the state.data is not really undefined since the correct user information is sent to the server.
My changes did not touch this file at all so that seems very weird to me. The fact that a refresh fixes the issue also seems like an weird behavior to me. If anyone has an idea of what might be the issue I am open to any idea/suggestion. I'll keep looking into it in the meanwhile.
Ok, i just looked really quickly and this behavior happens on the main branch as well. My changes have nothing to do with it.
@ONourry Ok but I'd still wait for jacobs approval as well because he said he wanted to test it
When a study group is created, the new group is now assigned to the user who created it.