Skip to content

Commit

Permalink
feat: make typing more explicit for case in getStatusFromWorkflowStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin9foong committed Dec 23, 2024
1 parent 1ac3620 commit 66b411c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export const getCurrentStepString = (
/** Gets the business friendly string for MRF submission status. */
export const getStatusFromWorkflowStatus = (
workflowStatus: WorkflowStatus | undefined,
) => {
): MRF_STATUS | '' => {
switch (workflowStatus) {
case WorkflowStatus.COMPLETED:
case WorkflowStatus.APPROVED:
case WorkflowStatus.REJECTED:
return MRF_STATUS.COMPLETED
case WorkflowStatus.PENDING:
return MRF_STATUS.PENDING
default:
case undefined:
return ''
}
}

0 comments on commit 66b411c

Please sign in to comment.