mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-23 23:10:20 +02:00
Fix community join button "no account" error
This commit is contained in:
parent
1eee9acadd
commit
02b8374adf
5
.changeset/twenty-turkeys-push.md
Normal file
5
.changeset/twenty-turkeys-push.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"nostrudel": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix community join button "no account" error
|
@ -47,7 +47,7 @@ export default function CommunityJoinButton({
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof Error) toast({ description: e.message, status: "error" });
|
if (e instanceof Error) toast({ description: e.message, status: "error" });
|
||||||
}
|
}
|
||||||
}, [isSubscribed, list, community]);
|
}, [isSubscribed, list, community, requestSignature, toast]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
@ -25,7 +25,7 @@ import CommunityDescription from "../../communities/components/community-descrip
|
|||||||
import UserAvatarLink from "../../../components/user-avatar-link";
|
import UserAvatarLink from "../../../components/user-avatar-link";
|
||||||
import { UserLink } from "../../../components/user-link";
|
import { UserLink } from "../../../components/user-link";
|
||||||
import { NostrEvent } from "../../../types/nostr-event";
|
import { NostrEvent } from "../../../types/nostr-event";
|
||||||
import CommunityJoinButton from "../../communities/components/community-subscribe-button";
|
import CommunityJoinButton from "../../communities/components/community-join-button";
|
||||||
import CommunityMenu from "./community-menu";
|
import CommunityMenu from "./community-menu";
|
||||||
import useCountCommunityMembers from "../../../hooks/use-count-community-members";
|
import useCountCommunityMembers from "../../../hooks/use-count-community-members";
|
||||||
import { readablizeSats } from "../../../helpers/bolt11";
|
import { readablizeSats } from "../../../helpers/bolt11";
|
||||||
|
@ -12,7 +12,7 @@ import CommunityDescription from "../../communities/components/community-descrip
|
|||||||
import UserAvatarLink from "../../../components/user-avatar-link";
|
import UserAvatarLink from "../../../components/user-avatar-link";
|
||||||
import { UserLink } from "../../../components/user-link";
|
import { UserLink } from "../../../components/user-link";
|
||||||
import { NostrEvent } from "../../../types/nostr-event";
|
import { NostrEvent } from "../../../types/nostr-event";
|
||||||
import CommunityJoinButton from "../../communities/components/community-subscribe-button";
|
import CommunityJoinButton from "../../communities/components/community-join-button";
|
||||||
import CommunityMenu from "./community-menu";
|
import CommunityMenu from "./community-menu";
|
||||||
import useCountCommunityMembers from "../../../hooks/use-count-community-members";
|
import useCountCommunityMembers from "../../../hooks/use-count-community-members";
|
||||||
import CommunityMembersModal from "./community-members-modal";
|
import CommunityMembersModal from "./community-members-modal";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user