fix update check returning falsey value

This commit is contained in:
Tanner Sommers 2024-07-25 21:51:46 -05:00
parent a3ae877972
commit 222e612fc8
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,7 @@
}, },
"package": { "package": {
"productName": "FanslySync", "productName": "FanslySync",
"version": "0.1.1" "version": "0.1.1.1"
}, },
"tauri": { "tauri": {
"allowlist": { "allowlist": {

View File

@ -47,8 +47,11 @@
loadingSync = false; loadingSync = false;
const updateStatus = await checkUpdate(); const updateStatus = await checkUpdate();
upToDate = updateStatus.shouldUpdate; upToDate = !updateStatus.shouldUpdate;
updateMeta = updateStatus.manifest || null; updateMeta = updateStatus.manifest || null;
console.log('[updateStatus]', updateStatus);
console.log('[upToDate]', upToDate);
console.log('[updateMeta]', updateMeta);
versionData.appVersion = await getVersion(); versionData.appVersion = await getVersion();
versionData.tauriVersion = await getTauriVersion(); versionData.tauriVersion = await getTauriVersion();