diff --git a/packages/ui/src/components/CallInfo.tsx b/packages/ui/src/components/CallInfo.tsx index 92cc7eef..031b5f3c 100644 --- a/packages/ui/src/components/CallInfo.tsx +++ b/packages/ui/src/components/CallInfo.tsx @@ -88,8 +88,8 @@ const handleBalanceDisplay = ({ const getTypeName = (index: number, name: string, value: any, api: ApiPromise) => { const [palletFromName, methodFromName] = name.split('.') - const pallet = value.section || palletFromName - const method = value.method || methodFromName + const pallet = value?.section || palletFromName + const method = value?.method || methodFromName const metaArgs = !!pallet && !!method && api.tx[pallet][method].meta.args return ( diff --git a/packages/ui/src/components/EasySetup/FromCallData.tsx b/packages/ui/src/components/EasySetup/FromCallData.tsx index c19ccc43..3b11b22d 100644 --- a/packages/ui/src/components/EasySetup/FromCallData.tsx +++ b/packages/ui/src/components/EasySetup/FromCallData.tsx @@ -30,8 +30,6 @@ const FromCallData = ({ className, onSetExtrinsic, isProxySelected, onSetErrorMe setIsProxyProxyRemoved(false) if (!api) return call - if (!isProxySelected) return call - const proxyProxyString = u8aToHex(api?.tx.proxy?.proxy.callIndex).toString() // check if this call is a proxy.proxy @@ -46,7 +44,7 @@ const FromCallData = ({ className, onSetExtrinsic, isProxySelected, onSetErrorMe setIsProxyProxyRemoved(true) return `0x${call.substring(74)}` as HexString }, - [api, isProxySelected] + [api] ) // users may erroneously paste callData from the multisig calldata @@ -106,12 +104,12 @@ const FromCallData = ({ className, onSetExtrinsic, isProxySelected, onSetErrorMe error={!!callDataError} fullWidth /> - {!!pastedCallData && !!pastedCallInfo && !callDataError && ( + {!!callInfo && !!pastedCallInfo && !callDataError && (