From 02b8374adfc4753ca0f81b5f2206c1a206268f00 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Sat, 28 Oct 2023 11:38:57 -0500 Subject: [PATCH 1/2] Fix community join button "no account" error --- .changeset/twenty-turkeys-push.md | 5 +++++ ...munity-subscribe-button.tsx => community-join-button.tsx} | 2 +- .../community/components/horizonal-community-details.tsx | 2 +- .../community/components/vertical-community-details.tsx | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/twenty-turkeys-push.md rename src/views/communities/components/{community-subscribe-button.tsx => community-join-button.tsx} (97%) diff --git a/.changeset/twenty-turkeys-push.md b/.changeset/twenty-turkeys-push.md new file mode 100644 index 000000000..7f0aedefb --- /dev/null +++ b/.changeset/twenty-turkeys-push.md @@ -0,0 +1,5 @@ +--- +"nostrudel": patch +--- + +Fix community join button "no account" error diff --git a/src/views/communities/components/community-subscribe-button.tsx b/src/views/communities/components/community-join-button.tsx similarity index 97% rename from src/views/communities/components/community-subscribe-button.tsx rename to src/views/communities/components/community-join-button.tsx index 4a9125863..f25d8d0bf 100644 --- a/src/views/communities/components/community-subscribe-button.tsx +++ b/src/views/communities/components/community-join-button.tsx @@ -47,7 +47,7 @@ export default function CommunityJoinButton({ } catch (e) { if (e instanceof Error) toast({ description: e.message, status: "error" }); } - }, [isSubscribed, list, community]); + }, [isSubscribed, list, community, requestSignature, toast]); return (