From d7ac418e05f43255c42ea115c9c352cf214753d5 Mon Sep 17 00:00:00 2001 From: V Date: Fri, 23 Jun 2023 18:09:43 +0200 Subject: Fix some plugins displaying legacy discriminators (username#0000) --- src/plugins/reviewDB/components/ReviewComponent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/plugins/reviewDB/components') diff --git a/src/plugins/reviewDB/components/ReviewComponent.tsx b/src/plugins/reviewDB/components/ReviewComponent.tsx index ddcae0a..a23d654 100644 --- a/src/plugins/reviewDB/components/ReviewComponent.tsx +++ b/src/plugins/reviewDB/components/ReviewComponent.tsx @@ -16,6 +16,7 @@ * along with this program. If not, see . */ +import { openUserProfile } from "@utils/discord"; import { classes } from "@utils/misc"; import { LazyComponent } from "@utils/react"; import { filters, findBulk } from "@webpack"; @@ -24,7 +25,7 @@ import { Alerts, moment, Timestamp, UserStore } from "@webpack/common"; import { Review, ReviewType } from "../entities"; import { deleteReview, reportReview } from "../reviewDbApi"; import { settings } from "../settings"; -import { canDeleteReview, cl, openUserProfileModal, showToast } from "../utils"; +import { canDeleteReview, cl, showToast } from "../utils"; import { DeleteButton, ReportButton } from "./MessageButton"; import ReviewBadge from "./ReviewBadge"; @@ -49,7 +50,7 @@ export default LazyComponent(() => { return function ReviewComponent({ review, refetch }: { review: Review; refetch(): void; }) { function openModal() { - openUserProfileModal(review.sender.discordID); + openUserProfile(review.sender.discordID); } function delReview() { -- cgit