Commit ba810383 authored by Gant Laborde's avatar Gant Laborde Committed by GitHub

Merge pull request #71 from bjornorri/fix-country-code-crash

Avoid crash when country code is nil
parents 99dffc4d ea6a0c4d
......@@ -163,7 +163,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