From 77c691651e72ba1569666d560f96af04bfde9a4e Mon Sep 17 00:00:00 2001 From: nick <69434290+lelboatz@users.noreply.github.com> Date: Fri, 17 Feb 2023 21:35:51 -0500 Subject: [PATCH] ReviewDB: Show edit instead of create review where applicable (#466) Co-authored-by: Ven --- src/plugins/reviewDB/components/ReviewsView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/reviewDB/components/ReviewsView.tsx b/src/plugins/reviewDB/components/ReviewsView.tsx index 4852967a..c62065f7 100644 --- a/src/plugins/reviewDB/components/ReviewsView.tsx +++ b/src/plugins/reviewDB/components/ReviewsView.tsx @@ -32,6 +32,7 @@ export default function ReviewsView({ userId }: { userId: string; }) { fallbackValue: [], deps: [refetchCount], }); + const username = UserStore.getUser(userId)?.username ?? ""; const dirtyRefetch = () => setRefetchCount(refetchCount + 1); @@ -79,7 +80,7 @@ export default function ReviewsView({ userId }: { userId: string; }) {