Skip to content

Commit

Permalink
Update addressInput.stories.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
cgero-eth committed Mar 15, 2024
1 parent 8ccf632 commit d6a430a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const ControlledComponent = (props: IAddressInputProps) => {
const [value, setValue] = useState<string>();
const [addressValue, setAddressValue] = useState<IAddressInputResolvedValue>();

const stringAddressValue =
addressValue != null ? `{ address: ${addressValue.address}, name: ${addressValue.name} }` : 'undefined';
const stringAddressValue = JSON.stringify(addressValue, null, 2) ?? 'undefined';

return (
<div className="flex grow flex-col gap-2">
Expand Down

0 comments on commit d6a430a

Please sign in to comment.