aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/reviewDB/components
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-06-23 18:09:43 +0200
committerV <vendicated@riseup.net>2023-06-23 18:09:43 +0200
commitd7ac418e05f43255c42ea115c9c352cf214753d5 (patch)
treecd4c148023aab0aa3ffdd6785e7d22d6ab834613 /src/plugins/reviewDB/components
parent214c101740622a8cc1c9cfbce8d51946564441da (diff)
downloadVencord-d7ac418e05f43255c42ea115c9c352cf214753d5.tar.gz
Vencord-d7ac418e05f43255c42ea115c9c352cf214753d5.tar.bz2
Vencord-d7ac418e05f43255c42ea115c9c352cf214753d5.zip
Fix some plugins displaying legacy discriminators (username#0000)
Diffstat (limited to 'src/plugins/reviewDB/components')
-rw-r--r--src/plugins/reviewDB/components/ReviewComponent.tsx5
1 files changed, 3 insertions, 2 deletions
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 <https://www.gnu.org/licenses/>.
*/
+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() {