From 7410d7aabb73e2ca168471f0fd719f0324a2cb8b Mon Sep 17 00:00:00 2001 From: NilsOveTen Date: Fri, 22 Sep 2023 10:41:35 +0200 Subject: [PATCH] refactor: editedStatuses -> overriddenStatuses --- src/features/concept-statuses/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/concept-statuses/utils.ts b/src/features/concept-statuses/utils.ts index 3044a1ef..9b926a27 100644 --- a/src/features/concept-statuses/utils.ts +++ b/src/features/concept-statuses/utils.ts @@ -11,7 +11,7 @@ export const prepareStatusList = (conceptStatuses: ReferenceDataCode[]) => { } } as ReferenceDataCode; - const editedStatuses = conceptStatuses.map(code => { + const overriddenStatuses = conceptStatuses.map(code => { if (code.code === 'WAITING') { code.label = { en: 'waiting', @@ -21,13 +21,13 @@ export const prepareStatusList = (conceptStatuses: ReferenceDataCode[]) => { } return code; }); - editedStatuses.push(rejected); + overriddenStatuses.push(rejected); const utilizedCodes: ReferenceDataCode[] = []; ['DRAFT', 'CANDIDATE', 'WAITING', 'CURRENT', 'RETIRED', 'REJECTED'].forEach( code => { - const utilized = editedStatuses.find(status => status.code === code); + const utilized = overriddenStatuses.find(status => status.code === code); if (utilized) utilizedCodes.push(utilized); } );