mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-22 19:57:51 +08:00
[bugfix][remote-config] strings incorrectly coerced to int (fixes #2458)
This commit is contained in:
committed by
Mike Diarmid
parent
8b9d1d3f42
commit
58aa94f88b
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user