feat: update sheet modal

This commit is contained in:
Adrian Castro
2024-03-26 15:43:03 +01:00
parent 5e8422b418
commit 1e975ddce4
4 changed files with 166 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ function isVersionHigher(newVersion: string, currentVersion: string): boolean {
return false;
}
export async function checkForUpdate(): Promise<string | undefined> {
export async function checkForUpdate() {
const octokit = new Octokit();
const res = await octokit.repos
@@ -40,6 +40,6 @@ export async function checkForUpdate(): Promise<string | undefined> {
const currentVersion = Application.nativeApplicationVersion ?? "0.0.0";
if (isVersionHigher(latestVersion, currentVersion)) {
return res.data.html_url;
return res;
}
}