From ca6201b5f99027030ca206b63653f386789124ce Mon Sep 17 00:00:00 2001 From: Tristan <33517218+TristanB17@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:30:06 -0600 Subject: [PATCH] fix for ssn not being visible on person info page (#4374) * fix jquery to js bug * remove comments --- app/javascript/controllers/person_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/controllers/person_controller.js b/app/javascript/controllers/person_controller.js index d64ff4d46ea..e42626b090b 100644 --- a/app/javascript/controllers/person_controller.js +++ b/app/javascript/controllers/person_controller.js @@ -53,7 +53,7 @@ export default class extends Controller { populateHtmlElement(personId, payload) { let ssnInputElement = document.querySelector(`.ssn-input-${personId}`); - if (ssnInputElement.tagName === 'Input') { + if (ssnInputElement.tagName === 'INPUT') { ssnInputElement.value = payload; } else { ssnInputElement.textContent = payload;