Skip to content

Commit

Permalink
Fixed minor bugs in edit profile
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewzpu committed Apr 24, 2024
1 parent e1dac68 commit e9bf030
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/src/Pages/ProfileEdit.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,11 @@
changed = changed || user_data[group].grad_year != formData.get("grad_year")
}
if (group == "Outreach Student") {
changed = changed || user_data[group].car
changed = changed || user_data[group].car != formData.get("car")
}
}
console.log(changed)
if (!changed || confirm("You have unsaved changes. Are you sure you want to leave?")) {
navigate("/profile/self")
}
Expand Down

0 comments on commit e9bf030

Please sign in to comment.