TMC - Children's Hospital of Philadelphia Heart
diff --git a/templates/profile.html b/templates/profile.html
index fea1abb..50cc2b7 100755
--- a/templates/profile.html
+++ b/templates/profile.html
@@ -44,6 +44,10 @@ HuBMAP User Profile Update
$("#id_component").change(function() {
let id = $(this).children("option:selected").val();
+
+ // Remove the single quote
+ id = id.replaceAll("'", "");
+
// All cards are hidden by default
if (id === '----') {
$("#active_card").html('');
diff --git a/templates/register.html b/templates/register.html
index 443f7d6..aafb767 100755
--- a/templates/register.html
+++ b/templates/register.html
@@ -33,6 +33,10 @@ HuBMAP New User Registration
$("#id_component").change(function() {
let id = $(this).children("option:selected").val();
+
+ // Remove the single quote
+ id = id.replaceAll("'", "");
+
// All cards are hidden by default
if (id === '----') {
$("#active_card").html('');