File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/core/src/ui/components Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export const DestinationAddressInput = ({
82
82
[ HandleVerificationState . INVALID ] : < ExclamationCircleOutlined className = { styles . invalid } /> ,
83
83
[ HandleVerificationState . VERIFYING ] : undefined
84
84
} ;
85
- const handleIcon = handleIcons [ handle ] || undefined ;
85
+ const handleIcon = ( handle && handleIcons [ handle ] ) || undefined ;
86
86
87
87
const shouldClearButtonBeDisabled =
88
88
( ! valid && ! empty ) ||
@@ -105,7 +105,10 @@ export const DestinationAddressInput = ({
105
105
106
106
const children = useMemo ( ( ) => {
107
107
if ( handle === HandleVerificationState . CHANGED_OWNERSHIP ) {
108
- return value . name && getInputLabel ( `$${ value . handleResolution . handle } ` , value . handleResolution . cardanoAddress ) ;
108
+ return (
109
+ value . name &&
110
+ getInputLabel ( `$${ value . handleResolution ?. handle } ` , value . handleResolution ?. cardanoAddress . toString ( ) ?? '' )
111
+ ) ;
109
112
}
110
113
return value . name && getInputLabel ( value . name , value . address ) ;
111
114
} , [ handle , value ] ) ;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export const EditAddressForm = ({
87
87
invalid = { ! isAddressFieldValid }
88
88
label = { translations . address }
89
89
dataTestId = "address-form-address-input"
90
- customIcon = { ! isAddressFieldValidating && isAddressHandle && renderSuffix ( ) }
90
+ customIcon = { ( ! isAddressFieldValidating && isAddressHandle && renderSuffix ( ) ) || undefined }
91
91
loading = { isAddressFieldValidating }
92
92
/>
93
93
</ Form . Item >
You can’t perform that action at this time.
0 commit comments