Parcourir la source

mutate when subscribe button clicked

kaori il y a 4 ans
Parent
commit
5bab7dca34
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      packages/app/src/components/SubscribeButton.tsx

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

@@ -44,6 +44,7 @@ const SubscribeButton: FC<Props> = (props: Props) => {
       if (res) {
         const { subscription } = res.data;
         setIsSubscribing(subscription.status === 'SUBSCRIBE');
+        mutate();
       }
     }
     catch (err) {