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) => {
setBalance(balance as Balance)
})
.catch((e) => setError(e))
.catch(setError)
setTimeout(() => {
setIsLoading(false)
}, 1000)
@@ -11,7 +11,7 @@ import {
} from '@material-ui/core'
import { useForm } from 'react-hook-form'
import { NodeTypeSelector } from '../../components/NodeTypeSelector'
import { DelegationResult, EnumNodeType, TFee } from '../../types'
import { EnumNodeType, TFee } from '../../types'
import { yupResolver } from '@hookform/resolvers/yup'
import { validationSchema } from './validationSchema'
import { Alert } from '@material-ui/lab'
@@ -93,6 +93,7 @@ export const DelegateForm = ({
<NodeTypeSelector
nodeType={watchNodeType}
setNodeType={(nodeType) => setValue('nodeType', nodeType)}
disabled={isSubmitting}
/>
</Grid>
<Grid item>