Mao 4 лет назад
Родитель
Сommit
214e4531ab

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

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

+ 1 - 1
packages/app/src/components/PageReactionButtons.tsx

@@ -8,7 +8,7 @@ type Props = {
   currentUserId: string,
 }
 
-const PageReactionButtons : React.FC<Props> = (props: Props) => {
+const PageReactionButtons : FC<Props> = (props: Props) => {
   const { pageId, currentUserId } = props;
   const LikeButtonsTypeAny: any = LikeButtons;