|
|
@@ -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,
|
|
|
};
|