Skip to content

Commit d074389

Browse files
committed
fix: remove redundant nullish coalescing on Date constructor
1 parent add66c8 commit d074389

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/BMDashboard/Issues/IssuesList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function IssueList() {
5252
id: issue._id,
5353
name: issue.issueTitle?.[0] ?? 'Untitled',
5454
tag: issue.tag || '',
55-
date: new Date(issue.createdDate.split('T')[0]) ?? null,
55+
date: new Date(issue.createdDate.split('T')[0]),
5656
project: projectMap[issue.projectId] || 'Unknown Project',
5757
openSince: getDaysSinceCreated(issue.createdDate.split('T')[0]),
5858
cost: issue.cost,

0 commit comments

Comments
 (0)