Skip to content

Commit

Permalink
Remove ternary in hold error banner
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcohen committed Dec 16, 2024
1 parent 565582e commit ca74cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/HoldPages/HoldRequestErrorBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const HoldRequestErrorBanner = ({
}}
content={
<Box>
{HOLD_PAGE_CONTACT_PREFIXES?.[errorStatus] ? (
{HOLD_PAGE_CONTACT_PREFIXES?.[errorStatus] && (
<Text>
{HOLD_PAGE_CONTACT_PREFIXES?.[errorStatus]}
{" Please try again, "}
Expand Down Expand Up @@ -88,7 +88,7 @@ const HoldRequestErrorBanner = ({
for assistance, or{" "}
<RCLink href="/search">start a new search.</RCLink>
</Text>
) : null}
)}
{(() => {
switch (errorStatus) {
case "invalid":
Expand Down

0 comments on commit ca74cf4

Please sign in to comment.