Skip to content

Commit 38a8a4c

Browse files
committed
tidy
1 parent 9c1e9ae commit 38a8a4c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/app/[locale]/account/profile/cohort-discovery-request/components/NhsSdeAccessStepper/NhsSdeAccessStepper.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ const NhsSdeAccessStepper = () => {
6767
const isApproved = nhs === NHS_SDE_STATUS.APPROVED;
6868
const inProcess = nhs === NHS_SDE_STATUS.IN_PROCESS;
6969
const approvalRequested = nhs === NHS_SDE_STATUS.APPROVAL_REQUESTED;
70-
const isResolvedNeg =
71-
!!nhs && (NHS_SDE_NEGATIVE_STATUSES as string[]).includes(nhs);
70+
const isResolvedNeg = !!nhs && NHS_SDE_NEGATIVE_STATUSES.includes(nhs);
7271

7372
const activeStep = (() => {
7473
if (!cdsApproved) return 1;

src/consts/cohortDiscovery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const NHS_SDE_STATUS = {
1717
EXPIRED: "EXPIRED",
1818
} as const;
1919

20-
const NHS_SDE_NEGATIVE_STATUSES = [
20+
const NHS_SDE_NEGATIVE_STATUSES: string[] = [
2121
NHS_SDE_STATUS.REJECTED,
2222
NHS_SDE_STATUS.EXPIRED,
2323
NHS_SDE_STATUS.BANNED,

0 commit comments

Comments
 (0)