Skip to content

Commit a90128b

Browse files
TCA-386 #comment This commit fixes the condition that compares undefined updated at values #time 15m
1 parent ba6dc17 commit a90128b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-ts/tools/learn/welcome/progress-block/progress-action/ProgressAction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const ProgressAction: FC<ProgressActionProps> = (props: ProgressActionProps) =>
4646
), [allCertifications])
4747

4848
// we only want to display the last course that was acted upon
49-
const mostRecentIsCompleted: boolean = myInProgressCertifications?.[0]?.updatedAt < myCompletedCertifications?.[0]?.updatedAt
49+
const mostRecentIsCompleted: boolean = myCompletedCertifications?.[0]?.updatedAt > (myInProgressCertifications?.[0]?.updatedAt || 0)
5050

5151
function renderInProgress(): JSX.Element {
5252

0 commit comments

Comments
 (0)