From e1915fe70881d59b1e9f78f8b9d1591c62f38893 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Fri, 22 Sep 2023 15:55:17 -0700 Subject: [PATCH] fix: disable subscribe button if no jwt --- src/lib/components/lemmy/community/CommunityItem.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/lemmy/community/CommunityItem.svelte b/src/lib/components/lemmy/community/CommunityItem.svelte index f520f4a4..3305030c 100644 --- a/src/lib/components/lemmy/community/CommunityItem.svelte +++ b/src/lib/components/lemmy/community/CommunityItem.svelte @@ -13,6 +13,7 @@ import FormattedNumber from '$lib/components/util/FormattedNumber.svelte' import { Button } from 'mono-svelte' import { isSubscribed } from '$lib/util.js' + import { profile } from '$lib/auth.js' export let community: CommunityView @@ -31,7 +32,7 @@