Skip to content

Commit

Permalink
fix for ssn not being visible on person info page (#4374)
Browse files Browse the repository at this point in the history
* fix jquery to js bug

* remove comments
  • Loading branch information
TristanB17 authored and charlienparker committed Sep 13, 2024
1 parent b616e14 commit ca6201b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/controllers/person_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca6201b

Please sign in to comment.