Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion app/routes/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,16 @@ function ProfileHandler(db) {
var testComplyWithRequirements = regexPattern.test(bankRouting);
// if the regex test fails we do not allow saving
if (testComplyWithRequirements !== true) {
const firstNameSafeString = firstName
return res.render("profile", {
updateError: "Bank Routing number does not comply with requirements for format specified"
updateError: "Bank Routing number does not comply with requirements for format specified",
firstNameSafeString,
lastName,
ssn,
dob,
address,
bankAcc,
bankRouting
});
}

Expand Down