Skip to content
Snippets Groups Projects
Commit 7359ebc6 authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

FahrplanPanel: Now using isNaN

parent e4562acd
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ function stringToDelay(input: string): number | undefined {
if(delay === 0) {
return undefined;
}
if(delay === Number.NaN) {
if(isNaN(delay)) {
console.warn("While parsing delay, the string was not interpretable as number", input);
return undefined;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment