From a25442c034325d9d0ef1b9f2b27f832a468444e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guillois?= Date: Thu, 14 Nov 2024 09:51:42 +0100 Subject: [PATCH] fix: ensure address verification modal appears when BAN address is empty --- .../src/components/OwnerAddressEdition/OwnerAddressEdition.tsx | 2 +- frontend/src/components/OwnerCard/OwnerCard.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/OwnerAddressEdition/OwnerAddressEdition.tsx b/frontend/src/components/OwnerAddressEdition/OwnerAddressEdition.tsx index b19fb1e07..113d10f55 100644 --- a/frontend/src/components/OwnerAddressEdition/OwnerAddressEdition.tsx +++ b/frontend/src/components/OwnerAddressEdition/OwnerAddressEdition.tsx @@ -47,7 +47,7 @@ function OwnerAddressEdition(props: Props) { onOpen={() => setOpen(true)} onClose={() => setOpen(false)} /> - {props.banAddress && props.warningVisible && !isBanEligible(props.banAddress) && ( + {props.warningVisible && !isBanEligible(props.banAddress) && ( - {props.owner.banAddress && !isBanEligible(props.owner.banAddress) && ( + {!isBanEligible(props.owner.banAddress) && (