1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 10:31:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Return empty object for version info

This commit is contained in:
sunnylqm
2021-10-06 09:30:36 +08:00
parent cac92b43c7
commit ee7be88542

View File

@@ -45,7 +45,7 @@ async function getLocalHashInfo(hash) {
}
export async function getCurrentVersionInfo() {
return currentVersion ? getLocalHashInfo(currentVersion) : {};
return currentVersion ? await getLocalHashInfo(currentVersion) || {} : {};
}
const eventEmitter = new NativeEventEmitter(Pushy);