Skip to content

Commit 8d0f2e9

Browse files
committed
Fixed incorrect value used for expiration date.
1 parent 1d2e4f0 commit 8d0f2e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web-ui/src/components/certifications/EarnedCertificationsTable.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ const EarnedCertificationsTable = ({
329329
}}
330330
/>
331331
<DatePickerField
332-
date={new Date(selectedEarned?.earnedDate)}
332+
date={selectedEarned?.expirationDate
333+
? new Date(selectedEarned?.expirationDate)
334+
: null
335+
}
333336
label="Expiration"
334337
setDate={date => {
335338
setSelectedEarned({

0 commit comments

Comments
 (0)