Skip to content

Commit

Permalink
Change misnamed variable name to pageStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcohen committed Nov 21, 2024
1 parent 20591dd commit 81675e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/hold/request/[id]/edd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default function EDDRequestPage({
const holdId = `${item.bibId}-${item.id}`

const [pageStatus, setPageStatus] = useState(defaultPageStatus)

const [eddFormState, setEddFormState] = useState({
...initialEDDFormState,
patronId,
Expand Down Expand Up @@ -155,7 +156,7 @@ export default function EDDRequestPage({
<HoldItemDetails item={item} />
{isLoading || formPosting ? (
<SkeletonLoader showImage={false} data-testid="edd-request-loading" />
) : status !== "unavailable" ? (
) : pageStatus !== "unavailable" ? (
<EDDRequestForm
eddFormState={eddFormState}
setEddFormState={setEddFormState}
Expand Down

0 comments on commit 81675e3

Please sign in to comment.