Shun Miyazawa 4 лет назад
Родитель
Сommit
93396e5a1c
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      packages/app/src/components/SubscribeButton.tsx

+ 4 - 0
packages/app/src/components/SubscribeButton.tsx

@@ -39,6 +39,10 @@ const SubscribeButton: FC<Props> = (props: Props) => {
   };
 
   const fetchSubscriptionStatus = useCallback(async() => {
+    if (appContainer.isGuestUser) {
+      return;
+    }
+
     try {
       const res = await appContainer.apiv3Get('/page/subscribe', { pageId });
       const { subscribing } = res.data;