From 019154023be9239870b7deca749551d434adc8c5 Mon Sep 17 00:00:00 2001 From: Jack C <30955604+jacany@users.noreply.github.com> Date: Mon, 19 Apr 2021 06:20:29 -0400 Subject: [PATCH] fix: presence erroring on update if no remote url (#1010) --- src/activity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activity.ts b/src/activity.ts index 5da275d..ad22a9b 100644 --- a/src/activity.ts +++ b/src/activity.ts @@ -75,7 +75,7 @@ export async function activity(previous: ActivityPayload = {}) { } if (!removeRemoteRepository && git?.repositories.length) { - let repo = git.repositories.find((repo) => repo.ui.selected)?.state.remotes[0].fetchUrl; + let repo = git.repositories.find((repo) => repo.ui.selected)?.state.remotes[0]?.fetchUrl; if (repo) { if (repo.startsWith('git@')) {