[bugfix][remote-config] strings incorrectly coerced to int (fixes #2458)

This commit is contained in:
Zhuoli Zhang
2019-08-08 08:38:15 -04:00
committed by Mike Diarmid
parent 8b9d1d3f42
commit 58aa94f88b

View File

@@ -66,10 +66,7 @@ function convertNativeConfigValues(configValues) {
} else if (
numberValue !== null &&
numberValue !== undefined &&
(stringValue == null ||
stringValue === '' ||
numberValue.toString() === stringValue ||
parseInt(stringValue, 10) === numberValue)
(stringValue === null || stringValue === '' || !isNaN(stringValue))
) {
value = numberValue;
}