Skip to content

Commit

Permalink
Fix render condition in remove button
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Mar 19, 2024
1 parent 058aa28 commit 550fb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/Form.tsx
Expand Up @@ -408,7 +408,7 @@ const Form: React.FC = (props: FlexProps) => {
placeholder='Smart contract address'
{...register(`addresses.${index}.address`, { required })}
/>
{(censusType === 'nft' || (censusType === 'erc20' && index > 0)) && (
{addressFields.length > 1 && (
<InputRightElement>
<IconButton
aria-label='Remove address'
Expand Down

0 comments on commit 550fb37

Please sign in to comment.