From 4621fe587e8c15afb8f40e345d3ae4353d0ea474 Mon Sep 17 00:00:00 2001 From: Xylight Date: Sat, 20 Jul 2024 11:55:54 -0700 Subject: [PATCH] fix: use profile.instance instead of instance store --- src/lib/lemmy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/lemmy.ts b/src/lib/lemmy.ts index e45defe5..91ecbff1 100644 --- a/src/lib/lemmy.ts +++ b/src/lib/lemmy.ts @@ -61,7 +61,7 @@ export function client({ ) => Promise auth?: string } = {}) { - if (!instanceURL) instanceURL = get(instance) + if (!instanceURL) instanceURL = get(profile).instance let jwt = auth ? auth : get(profile)?.jwt