From 13cde08be1bcfdcf5ce095bed2120da37d77e9a5 Mon Sep 17 00:00:00 2001 From: jhflorey Date: Wed, 18 Dec 2024 10:12:33 -0500 Subject: [PATCH] Remove pobox in profile page temporarily --- js/pages/settings.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/js/pages/settings.js b/js/pages/settings.js index 2d65ba1e..0dae59e2 100644 --- a/js/pages/settings.js +++ b/js/pages/settings.js @@ -432,18 +432,19 @@ const handleEditMailingAddressSection = () => { const city = document.getElementById('UPAddress1City').value.trim(); const state = document.getElementById('UPAddress1State').value.trim(); const zip = document.getElementById('UPAddress1Zip').value.trim(); - const isPOBox = document.getElementById('poBoxCheckbox').checked; + // const isPOBox = document.getElementById('poBoxCheckbox').checked; const isMailingAddressValid = validateMailingAddress(1, addressLine1, city, state, zip); if (isMailingAddressValid) { formVisBools.isMailingAddressFormDisplayed = toggleElementVisibility(mailingAddressElementArray, formVisBools.isMailingAddressFormDisplayed); toggleButtonText(); - submitNewMailingAddress(1, addressLine1, addressLine2, city, state, zip, isPOBox); + // submitNewMailingAddress(1, addressLine1, addressLine2, city, state, zip, isPOBox); + submitNewMailingAddress(1, addressLine1, addressLine2, city, state, zip); } }); }; -const submitNewMailingAddress = async (id, addressLine1, addressLine2, city, state, zip, isPOBox) => { +const submitNewMailingAddress = async (id, addressLine1, addressLine2, city, state, zip, isPOBox = false) => { const isSuccess = await changeMailingAddress(id, addressLine1, addressLine2, city, state, zip, userData, isPOBox).catch(function (error) { document.getElementById(`mailingAddressFail${id}`).style.display = 'block'; document.getElementById(`mailingAddressError${id}`).innerHTML = error.message; @@ -1518,14 +1519,14 @@ export const renderChangeMailingAddressGroup = (id ) => { - ${id === 1 ? ` +