diff --git a/.changeset/silly-days-hunt.md b/.changeset/silly-days-hunt.md new file mode 100644 index 00000000..8e52f90a --- /dev/null +++ b/.changeset/silly-days-hunt.md @@ -0,0 +1,5 @@ +--- +'@reservoir0x/relay-kit-ui': patch +--- + +Fix undefined placeholder in custom address model when toChain is undefined diff --git a/packages/ui/src/components/common/CustomAddressModal.tsx b/packages/ui/src/components/common/CustomAddressModal.tsx index b2f64ff9..d2b5f2ff 100644 --- a/packages/ui/src/components/common/CustomAddressModal.tsx +++ b/packages/ui/src/components/common/CustomAddressModal.tsx @@ -138,9 +138,11 @@ export const CustomAddressModal: FC = ({ height: 48 }} placeholder={ - toChain?.vmType === 'evm' + !toChain + ? 'Enter address' + : toChain.vmType === 'evm' ? 'Address or ENS' - : `Enter ${toChain?.displayName} address` + : `Enter ${toChain.displayName} address` } value={input} onChange={(e) => {