updateUserInfo() is not updating

In the line updateUser(userId, userInfo) , I see where you’re building the userInfo object, but I don’t see where userId is coming from. Did you check if userId is correct?