fix build chat page
This commit is contained in:
@@ -24,9 +24,7 @@ export function Page() {
|
||||
]);
|
||||
const add = useChatMessages((state: any) => state.add);
|
||||
|
||||
useSWRSubscription(
|
||||
account.pubkey !== pubkey ? ["chat", pubkey] : null,
|
||||
() => {
|
||||
useSWRSubscription(account !== pubkey ? ["chat", pubkey] : null, () => {
|
||||
const unsubscribe = pool.subscribe(
|
||||
[
|
||||
{
|
||||
@@ -45,8 +43,7 @@ export function Page() {
|
||||
return () => {
|
||||
unsubscribe();
|
||||
};
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
fetchMessages(account.pubkey, pubkey);
|
||||
|
||||
Reference in New Issue
Block a user