aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ChapterVoteComponent.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ChapterVoteComponent.tsx')
-rw-r--r--src/components/ChapterVoteComponent.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ChapterVoteComponent.tsx b/src/components/ChapterVoteComponent.tsx
index 73f14d06..1c37a200 100644
--- a/src/components/ChapterVoteComponent.tsx
+++ b/src/components/ChapterVoteComponent.tsx
@@ -7,8 +7,8 @@ import ThumbsDownSvg from "../svg-icons/thumbs_down_svg";
import { downvoteButtonColor, SkipNoticeAction } from "../utils/noticeUtils";
import { VoteResponse } from "../messageTypes";
import { AnimationUtils } from "../utils/animationUtils";
-import { GenericUtils } from "../utils/genericUtils";
import { Tooltip } from "../render/Tooltip";
+import { getErrorMessage } from "@ajayyy/maze-utils/lib/formating";
export interface ChapterVoteProps {
vote: (type: number, UUID: SegmentUUID, category?: Category) => Promise<VoteResponse>;
@@ -124,7 +124,7 @@ class ChapterVoteComponent extends React.Component<ChapterVoteProps, ChapterVote
show: type === 1
});
} else if (response.statusCode !== 403) {
- alert(GenericUtils.getErrorMessage(response.statusCode, response.responseText));
+ alert(getErrorMessage(response.statusCode, response.responseText));
}
}
}