kaori %!s(int64=4) %!d(string=hai) anos
pai
achega
b8325bb7b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/app/src/stores/page.tsx

+ 1 - 1
packages/app/src/stores/page.tsx

@@ -40,7 +40,7 @@ export const useSWRxSubscribeButton = <Data, Error>(
 ): SWRResponse<{status: boolean | null}, Error> => {
   return useSWR(
     ['/page/subscribe', pageId],
-    endpoint => apiv3Get(endpoint, { pageId }).then((response) => {
+    (endpoint, pageId) => apiv3Get(endpoint, { pageId }).then((response) => {
       return {
         status: response.data.subscribing,
       };