Counselllor / Counsellor-Web

Local variable name shadows variable in outer scope JS-0123
Bug risk
Minor
1 occurrence in this check
'userInfo' is already declared in the upper scope on line 34 column 10
103    });
104  });
105
106  function writeUserData(userId, email, userInfo) {107    const { firstName, surname, dob, gender, age } = userInfo;
108    const user_type = userInfo["user-type"];
109    set(ref(database, "users/" + userId), {