mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 13:11:39 +08:00
Return empty object for version info
This commit is contained in:
@@ -45,7 +45,7 @@ async function getLocalHashInfo(hash) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getCurrentVersionInfo() {
|
export async function getCurrentVersionInfo() {
|
||||||
return currentVersion ? getLocalHashInfo(currentVersion) : {};
|
return currentVersion ? await getLocalHashInfo(currentVersion) || {} : {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const eventEmitter = new NativeEventEmitter(Pushy);
|
const eventEmitter = new NativeEventEmitter(Pushy);
|
||||||
|
Reference in New Issue
Block a user