File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,9 @@ - (NSDictionary *)constantsToExport
178178 NSDictionary *pushyInfo = [defaults dictionaryForKey: keyPushyInfo];
179179 NSString *currentVersion = [pushyInfo objectForKey: paramCurrentVersion];
180180 ret[@" currentVersion" ] = currentVersion;
181- ret[@" currentVersionInfo" ] = [defaults objectForKey: [keyHashInfo stringByAppendingString: currentVersion]];
181+ if (currentVersion != nil ) {
182+ ret[@" currentVersionInfo" ] = [defaults objectForKey: [keyHashInfo stringByAppendingString: currentVersion]];
183+ }
182184
183185 // clear isFirstTimemarked
184186 if (ret[@" isFirstTime" ]) {
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-update" ,
3- "version" : " 10.31.1 " ,
3+ "version" : " 10.31.2 " ,
44 "description" : " react-native hot update" ,
55 "main" : " src/index" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments