Skip to content

Commit bd4491c

Browse files
committed
is isNumeric instead of typeof === 'number'
1 parent 79eae53 commit bd4491c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/traces/scattergl/convert.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ function convertStyle(gd, trace) {
5353

5454
var textfont = unarr(trace.textfont, i);
5555
var fontSize = unarr(textfont.size, i);
56-
if(typeof fontSize !== 'number') {
57-
continue;
58-
}
56+
if(!isNumeric(fontSize)) continue;
5957

6058
textOptions.color = unarr(textfont.color, i);
6159

0 commit comments

Comments
 (0)