From 2294f39ebf01aa5780aac220dd2bb70e6847a2f2 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 16 May 2020 17:24:36 +0200 Subject: [PATCH] Nominations fix (via NominateInfo) --- packages/page-staking/src/Actions/Account/Nominate.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/page-staking/src/Actions/Account/Nominate.tsx b/packages/page-staking/src/Actions/Account/Nominate.tsx index 4397959608..0fd0832e24 100644 --- a/packages/page-staking/src/Actions/Account/Nominate.tsx +++ b/packages/page-staking/src/Actions/Account/Nominate.tsx @@ -2,7 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { SubmittableExtrinsic } from '@polkadot/api/types'; +import { NominateInfo } from '../partials/types'; import { SortedTargets } from '../../types'; import React, { useState } from 'react'; @@ -23,7 +23,7 @@ interface Props { function Nominate ({ controllerId, next, nominating, onClose, stashId, targets, validators }: Props): React.ReactElement | null { const { t } = useTranslation(); - const [tx, setTx] = useState | null>(null); + const [{ nominateTx }, setTx] = useState({}); return (