Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 844aeb1

Browse files
author
dengjun
committed
ci:continue fix109
1 parent d5f6779 commit 844aeb1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/services/myGigs.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,14 @@ const mapMyGigsData = (serverResponse) => {
5858
previous:
5959
gigPhase == MY_GIG_PHASE.APPLIED ? gigPhase : previousStatus,
6060
next: gigPhase == MY_GIG_PHASE.APPLIED ? null : gigPhase,
61-
previousNote: JOB_STATUS_MESSAGE_MAPPER[previousStatus],
62-
nextNote: JOB_STATUS_MESSAGE_MAPPER[gigPhase],
61+
previousNote:
62+
gigPhase == MY_GIG_PHASE.APPLIED
63+
? JOB_STATUS_MESSAGE_MAPPER[gigPhase]
64+
: JOB_STATUS_MESSAGE_MAPPER[previousStatus],
65+
nextNote:
66+
gigPhase == MY_GIG_PHASE.APPLIED
67+
? null
68+
: JOB_STATUS_MESSAGE_MAPPER[gigPhase],
6369
status: myGig.status,
6470
// in case there's some status not taken in account, it will show last.
6571
sortPrio: sortPrio === -1 ? SORT_STATUS_ORDER.length + 1 : sortPrio,

0 commit comments

Comments
 (0)