Skip to content

Commit f59528f

Browse files
committed
fix: avoid reserved QML identifier
1 parent 2763d93 commit f59528f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

quickshell/Modals/GoToDateDialog.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ Popup {
5252
if (/^\d{4}$/.test(s))
5353
return validDate(parseInt(s, 10), 0, 1);
5454

55-
const native = new Date(s);
56-
if (!isNaN(native.getTime()))
57-
return validDate(native.getFullYear(), native.getMonth(), native.getDate());
55+
const parsedDate = new Date(s);
56+
if (!isNaN(parsedDate.getTime()))
57+
return validDate(parsedDate.getFullYear(), parsedDate.getMonth(), parsedDate.getDate());
5858

5959
return null;
6060
}

0 commit comments

Comments
 (0)