PR updates

This commit is contained in:
fmtabbara
2021-09-23 17:42:34 +01:00
parent de601c319a
commit 46149012bd
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export const useGetBalance = (): TUseGetBalance => {
.then((balance) => { .then((balance) => {
setBalance(balance as Balance) setBalance(balance as Balance)
}) })
.catch((e) => setError(e)) .catch(setError)
setTimeout(() => { setTimeout(() => {
setIsLoading(false) setIsLoading(false)
}, 1000) }, 1000)
@@ -11,7 +11,7 @@ import {
} from '@material-ui/core' } from '@material-ui/core'
import { useForm } from 'react-hook-form' import { useForm } from 'react-hook-form'
import { NodeTypeSelector } from '../../components/NodeTypeSelector' import { NodeTypeSelector } from '../../components/NodeTypeSelector'
import { DelegationResult, EnumNodeType, TFee } from '../../types' import { EnumNodeType, TFee } from '../../types'
import { yupResolver } from '@hookform/resolvers/yup' import { yupResolver } from '@hookform/resolvers/yup'
import { validationSchema } from './validationSchema' import { validationSchema } from './validationSchema'
import { Alert } from '@material-ui/lab' import { Alert } from '@material-ui/lab'
@@ -93,6 +93,7 @@ export const DelegateForm = ({
<NodeTypeSelector <NodeTypeSelector
nodeType={watchNodeType} nodeType={watchNodeType}
setNodeType={(nodeType) => setValue('nodeType', nodeType)} setNodeType={(nodeType) => setValue('nodeType', nodeType)}
disabled={isSubmitting}
/> />
</Grid> </Grid>
<Grid item> <Grid item>