From b2953b0e42b8100e4e21125f8b24671d61a9fe57 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Sat, 1 Oct 2022 15:39:12 -0500 Subject: [PATCH] hide tips for self --- web/components/tipper.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/components/tipper.tsx b/web/components/tipper.tsx index f9bf5c18..a9c35937 100644 --- a/web/components/tipper.tsx +++ b/web/components/tipper.tsx @@ -73,8 +73,11 @@ export function Tipper(prop: { comment: Comment; tips: CommentTips }) { me && saveTip(me, comment, localTip - savedTip + delta) } - const canUp = - me && me.id !== comment.userId && me.balance >= localTip + TIP_SIZE + if (me && comment.userId === me.id) { + return <> + } + + const canUp = me && me.balance >= localTip + TIP_SIZE return (