From 42ce4585525a0baf72002d8a4e1557ff8ca3e42e Mon Sep 17 00:00:00 2001
From: Dima Rifai <dima.rifai@gmail.com>
Date: Mon, 27 Jan 2025 16:12:40 +0200
Subject: [PATCH] Issue #399 - Show buttons only if the user in a witness

---
 components/account/AccountMainCard.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/account/AccountMainCard.tsx b/components/account/AccountMainCard.tsx
index 681a2fba..de00864a 100644
--- a/components/account/AccountMainCard.tsx
+++ b/components/account/AccountMainCard.tsx
@@ -209,7 +209,7 @@ const AccountMainCard: React.FC<AccountMainCardProps> = ({
           </div>
         </div>
       </CardContent>
-      {!isWitnessError && !isWitnessLoading && (
+      {accountDetails.is_witness && !isWitnessError && !isWitnessLoading && (
         <CardFooter>
           <div className="w-full flex justify-between">
             <button
-- 
GitLab