diff --git a/components/forms/CreateTxForm/MsgForm/index.tsx b/components/forms/CreateTxForm/MsgForm/index.tsx index 98d38ba..a9be224 100644 --- a/components/forms/CreateTxForm/MsgForm/index.tsx +++ b/components/forms/CreateTxForm/MsgForm/index.tsx @@ -7,7 +7,7 @@ import MsgSendForm from "./MsgSendForm"; import MsgUndelegateForm from "./MsgUndelegateForm"; type MsgFormProps = { - readonly txType: NonNullable; + readonly txType: TxType; } & { readonly senderAddress: string; readonly setCheckAndGetMsg: Dispatch TxMsg | null) | undefined>>; diff --git a/components/forms/CreateTxForm/index.tsx b/components/forms/CreateTxForm/index.tsx index 6caa696..1ccef67 100644 --- a/components/forms/CreateTxForm/index.tsx +++ b/components/forms/CreateTxForm/index.tsx @@ -13,7 +13,7 @@ import MsgForm from "./MsgForm"; interface CreateTxFormProps { readonly router: NextRouter; - readonly txType: NonNullable; + readonly txType: TxType; readonly senderAddress: string; readonly accountOnChain: Account; readonly closeForm: () => void; diff --git a/pages/multi/[address]/index.tsx b/pages/multi/[address]/index.tsx index 9fcdc3d..b5220f4 100644 --- a/pages/multi/[address]/index.tsx +++ b/pages/multi/[address]/index.tsx @@ -27,7 +27,7 @@ const Multipage = () => { const { state } = useAppContext(); assert(state.chain.addressPrefix, "address prefix missing"); - const [txType, setTxType] = useState(null); + const [txType, setTxType] = useState(null); const [holdings, setHoldings] = useState([]); const [multisigAddress, setMultisigAddress] = useState(""); const [accountOnChain, setAccountOnChain] = useState(null); diff --git a/types/txMsg.ts b/types/txMsg.ts index cc94ec3..b3d2ed4 100644 --- a/types/txMsg.ts +++ b/types/txMsg.ts @@ -1,4 +1,4 @@ -export type TxType = null | "send" | "delegate" | "undelegate" | "redelegate" | "claimRewards"; +export type TxType = "send" | "delegate" | "undelegate" | "redelegate" | "claimRewards"; export type TxMsg = | TxMsgSend