diff --git a/src/pages/Explorer/Detail/Extrinsic.tsx b/src/pages/Explorer/Detail/Extrinsic.tsx index 7ac1ba5..8263a99 100644 --- a/src/pages/Explorer/Detail/Extrinsic.tsx +++ b/src/pages/Explorer/Detail/Extrinsic.tsx @@ -1,7 +1,6 @@ import { CopyBinary } from "@/codec-components/ViewCodec/CopyBinary" import { AccountIdDisplay } from "@/components/AccountIdDisplay" import { CopyText } from "@/components/Copy" -import { EthAccountDisplay } from "@/components/EthAccountDisplay" import { ExpandBtn } from "@/components/Expand" import { JsonDisplay } from "@/components/JsonDisplay" import { Link } from "@/hashParams" @@ -43,11 +42,12 @@ export const Extrinsic: FC<{ extrinsic.extra.ChargeTxPayment) : undefined - let sender = null - if (extrinsic.type === "signed") sender = extrinsic.address - else if (extrinsic.type === "general") { - if (extrinsic.extra?.VerifyMultiSignature?.type === "Signed") - sender = extrinsic.extra.VerifyMultiSignature.value.account + let sender = extrinsic.type === "signed" ? extrinsic.address : null + if ( + extrinsic.type === "general" && + extrinsic.extra.VerifyMultiSignature?.type === "Signed" + ) { + sender = extrinsic.extra.VerifyMultiSignature.value.account } return ( @@ -73,11 +73,9 @@ export const Extrinsic: FC<{ {expanded ? (