Skip to content

Commit

Permalink
fix: ensure address verification modal appears when BAN address is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
loicguillois committed Nov 20, 2024
1 parent 1941c51 commit a25442c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) && (
<CallOut
className="fr-mt-3w"
buttonProps={{
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/OwnerCard/OwnerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function OwnerCard(props: OwnerCardProps) {
</Grid>


{props.owner.banAddress && !isBanEligible(props.owner.banAddress) && (
{!isBanEligible(props.owner.banAddress) && (
<Grid xs={12}>
<Alert
severity="info"
Expand Down

0 comments on commit a25442c

Please sign in to comment.