From fe2146f45989edceaf5e0d3a5ef3d7247a0d9efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Sworze=C5=84?= Date: Mon, 8 Apr 2024 10:09:54 +0200 Subject: [PATCH 1/2] [#641] fix sole voter card --- .../components/organisms/DashboardCards.tsx | 1 - .../DashboardCards/SoleVoterDashboardCard.tsx | 26 +++---------------- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/govtool/frontend/src/components/organisms/DashboardCards.tsx b/govtool/frontend/src/components/organisms/DashboardCards.tsx index 300e7502c..dcb2d48cc 100644 --- a/govtool/frontend/src/components/organisms/DashboardCards.tsx +++ b/govtool/frontend/src/components/organisms/DashboardCards.tsx @@ -72,7 +72,6 @@ export const DashboardCards = () => { /> navigate("/"); - // learn more button const learnMoreButton: LoadingButtonProps = { children: t("learnMore"), @@ -140,15 +131,6 @@ export const SoleVoterDashboardCard = ({ pendingTransaction?.registerAsSoleVoter?.transactionHash || pendingTransaction?.retireAsSoleVoter?.transactionHash } - > - {(pendingTransaction?.registerAsSoleVoter || - voter.isRegisteredAsSoleVoter) && ( - - )} - + > ); }; From 7afb1d72e995c29c6905f53e0ba306a1df871f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Sworze=C5=84?= Date: Mon, 8 Apr 2024 16:18:18 +0200 Subject: [PATCH 2/2] [#641] fix lint --- .../organisms/DashboardCards/SoleVoterDashboardCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/govtool/frontend/src/components/organisms/DashboardCards/SoleVoterDashboardCard.tsx b/govtool/frontend/src/components/organisms/DashboardCards/SoleVoterDashboardCard.tsx index e81784a3b..5656d9c5d 100644 --- a/govtool/frontend/src/components/organisms/DashboardCards/SoleVoterDashboardCard.tsx +++ b/govtool/frontend/src/components/organisms/DashboardCards/SoleVoterDashboardCard.tsx @@ -131,6 +131,6 @@ export const SoleVoterDashboardCard = ({ pendingTransaction?.registerAsSoleVoter?.transactionHash || pendingTransaction?.retireAsSoleVoter?.transactionHash } - > + /> ); };