From 77b21dfb1c2871447bf60ebf9efeb283282a1b51 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 6 Oct 2023 18:01:57 -0700 Subject: Fix bug that prevents unfollowing (#1633) --- src/state/models/cache/my-follows.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/state/models/cache/my-follows.ts b/src/state/models/cache/my-follows.ts index 14dc9895d..07079b5af 100644 --- a/src/state/models/cache/my-follows.ts +++ b/src/state/models/cache/my-follows.ts @@ -102,8 +102,8 @@ export class MyFollowsCache { getFollowUri(did: string): string { const v = this.byDid[did] - if (typeof v === 'string') { - return v + if (v && typeof v.followRecordUri === 'string') { + return v.followRecordUri } throw new Error('Not a followed user') } -- cgit 1.4.1