Avoid crash when country code is nil

parent 9b8d6f9c
......@@ -161,7 +161,7 @@ RCT_EXPORT_MODULE()
@"deviceId": self.deviceId,
@"deviceName": currentDevice.name,
@"deviceLocale": self.deviceLocale,
@"deviceCountry": self.deviceCountry,
@"deviceCountry": self.deviceCountry ?: [NSNull null],
@"uniqueId": uniqueId,
@"bundleId": [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleIdentifier"],
@"appVersion": [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment