Counselllor / Counsellor-Web

Require template literals instead of string concatenation JS-0246
Anti-pattern
Minor
4 months ago4 months old
Unexpected string concatenation
103  function writeUserData(userId, email, userInfo) {
104    const { firstName, surname, dob, gender, age } = userInfo;
105    const user_type = userInfo["user-type"];
106    set(ref(database, "users/" + userId), {107      firstname: firstName,
108      surname: surname,
109      email: email,