Skip to content

Commit

Permalink
Update can't show appointment alert content (#33685)
Browse files Browse the repository at this point in the history
* Update can't show appointment alert content

* Fixup
  • Loading branch information
JunTaoLuo authored Dec 19, 2024
1 parent 90f1963 commit a076b1f
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function displayType(errorCodes, location) {
) &&
isPending
) {
return ['requests', 'appointment request', 'requested'];
return ['requests', 'reschedule a request', 'requested'];
}
if (
errorCodes.some(
Expand All @@ -35,7 +35,7 @@ function displayType(errorCodes, location) {
) &&
(isPast || isUpcoming)
) {
return ['appointments', 'appointment', 'scheduled'];
return ['appointments', 'manage an appointment', 'scheduled'];
}
return null;
}
Expand Down Expand Up @@ -73,17 +73,18 @@ export default function BackendAppointmentServiceAlert() {
<div className="vads-u-margin-bottom--4">
<va-alert-expandable
status="warning"
trigger={`We can't display all your ${display[0]}.`}
trigger={`We can’t show some of your ${display[0]} right now`}
data-testid="backend-appointment-service-alert"
>
<p>
{`We're working to resolve this issue.
To manage an ${display[1]}
that is not shown in this list, contact the facility at which it
{`Were working to fix this problem.
To ${display[1]}
that’s not in this list, contact the VA facility where it
was ${display[2]}. `}
</p>
<br />
<p>
<a href="/find-locations">Facility locator</a>
<a href="/find-locations">Find your VA health facility</a>
</p>
</va-alert-expandable>
</div>
Expand Down

0 comments on commit a076b1f

Please sign in to comment.