Skip to content

Commit a6449e9

Browse files
author
Saurabh Kumar Bajpai
committed
fix: code quality and safety improvements
1 parent af173a5 commit a6449e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎frontend/js/chat.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ Tell me: what is stirring in you today?`,
854854
timestamp = rawMessage.timestamp;
855855
} else if (typeof rawMessage.timestamp === 'string') {
856856
const parsed = Date.parse(rawMessage.timestamp);
857-
if (!isNaN(parsed)) {
857+
if (!Number.isNaN(parsed)) {
858858
timestamp = parsed;
859859
}
860860
}

0 commit comments

Comments
 (0)