Shun Miyazawa 4 years ago
parent
commit
57c0037b91
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/components/SubscribeButton.jsx

+ 2 - 2
packages/app/src/components/SubscribeButton.jsx

@@ -14,7 +14,7 @@ const SubscruibeButton = (props) => {
 
 
   const { appContainer, pageContainer } = props;
   const { appContainer, pageContainer } = props;
 
 
-  const Subscribe = async() => {
+  const handleClick = async() => {
     try {
     try {
       const res = await appContainer.apiv3Put('page/subscribe', { pageId: pageContainer.state.pageId, status: !isWatching });
       const res = await appContainer.apiv3Put('page/subscribe', { pageId: pageContainer.state.pageId, status: !isWatching });
       if (res) {
       if (res) {
@@ -32,7 +32,7 @@ const SubscruibeButton = (props) => {
       <button
       <button
         type="button"
         type="button"
         id="subscribe-button"
         id="subscribe-button"
-        onClick={Subscribe}
+        onClick={handleClick}
         className={`btn btn-watch border-0 ${`btn-${props.size}`} ${isWatching ? 'active' : ''} `}
         className={`btn btn-watch border-0 ${`btn-${props.size}`} ${isWatching ? 'active' : ''} `}
       >
       >
         {isWatching && (
         {isWatching && (