Mao 4 سال پیش
والد
کامیت
0862e1718d
2فایلهای تغییر یافته به همراه0 افزوده شده و 6 حذف شده
  1. 0 3
      packages/app/src/components/BookmarkButton.jsx
  2. 0 3
      packages/app/src/components/LikeButtons.jsx

+ 0 - 3
packages/app/src/components/BookmarkButton.jsx

@@ -34,9 +34,6 @@ class BookmarkButton extends React.Component {
       if (onChangeInvoked != null) {
         onChangeInvoked();
       }
-      else {
-        throw new Error('onChangeInvoked is null');
-      }
     }
     catch (err) {
       toastError(err);

+ 0 - 3
packages/app/src/components/LikeButtons.jsx

@@ -48,9 +48,6 @@ class LikeButtons extends React.Component {
       if (onChangeInvoked !== null) {
         await onChangeInvoked();
       }
-      else {
-        return new Error('onChangeInvoked is null');
-      }
     }
     catch (err) {
       toastError(err);