Skip to content

Commit 51f0762

Browse files
Merge pull request #287 from topcoder-platform/TCA-386_newly-completed
TCA-386 Fixes the condition determines what shows up on landing page -> dev
2 parents ba6dc17 + a90128b commit 51f0762

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)