From 6eb22070407713b9d0dcfc5ee24861db71816183 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 25 Jun 2026 11:04:00 +0200 Subject: [PATCH] Updater: fix potentially erroring in edge case --- src/main/updater/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/updater/http.ts b/src/main/updater/http.ts index a112dde37..686d608cc 100644 --- a/src/main/updater/http.ts +++ b/src/main/updater/http.ts @@ -51,7 +51,7 @@ async function calculateGitChanges() { return data.commits.map((c: any) => ({ // github api only sends the long sha hash: c.sha.slice(0, 7), - author: c.author.login, + author: c.author?.login ?? c.commit?.author?.name ?? "Unknown Author", message: c.commit.message.split("\n")[0] })); }