Skip to content

Commit

Permalink
fixed issue with address validation when the address is UNDELIVERABLE (
Browse files Browse the repository at this point in the history
…#30713)

* fixed issue with address validation when the address is UNDELIVERABLE

* fixed button styles
  • Loading branch information
wafimohamed committed Jul 5, 2024
1 parent 02e920e commit 0c658d9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ const ButtonsGroup = ({
secondaryLabel,
}) => {
return (
<div>
<va-button onClick={onPrimaryClick} text={primaryLabel} />
<div className="button-container">
<va-button
onClick={onPrimaryClick}
text={primaryLabel}
class="vads-u-margin-bottom--1p5"
/>
<va-button onClick={onSecondaryClick} secondary text={secondaryLabel} />
</div>
);
Expand Down
5 changes: 4 additions & 1 deletion src/applications/verify-your-enrollment/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ export const errorAddressAlert = deliveryPointValidation => {
/>
);
}
if (deliveryPointValidation === 'MISSING_ZIP') {
if (
deliveryPointValidation === 'MISSING_ZIP' ||
deliveryPointValidation === 'UNDELIVERABLE'
) {
return (
<Alert
status="warning"
Expand Down
3 changes: 2 additions & 1 deletion src/applications/verify-your-enrollment/helpers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,8 @@ export const noSuggestedAddress = deliveryPointValidation => {
return (
deliveryPointValidation === BAD_UNIT_NUMBER ||
deliveryPointValidation === MISSING_UNIT_NUMBER ||
deliveryPointValidation === 'MISSING_ZIP'
deliveryPointValidation === 'MISSING_ZIP' ||
deliveryPointValidation === 'UNDELIVERABLE'
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
opacity: 0 !important;
position: absolute !important;
}

.button-container{
width: 100%;
display: flex;
Expand Down

0 comments on commit 0c658d9

Please sign in to comment.