diff --git a/tauri-wallet/src/hooks/useGetBalance.tsx b/tauri-wallet/src/hooks/useGetBalance.tsx index 5d69944640..8325cbb736 100644 --- a/tauri-wallet/src/hooks/useGetBalance.tsx +++ b/tauri-wallet/src/hooks/useGetBalance.tsx @@ -21,7 +21,7 @@ export const useGetBalance = (): TUseGetBalance => { .then((balance) => { setBalance(balance as Balance) }) - .catch((e) => setError(e)) + .catch(setError) setTimeout(() => { setIsLoading(false) }, 1000) diff --git a/tauri-wallet/src/routes/delegate/DelegateForm.tsx b/tauri-wallet/src/routes/delegate/DelegateForm.tsx index d4c0ae7887..fb32dc2c44 100644 --- a/tauri-wallet/src/routes/delegate/DelegateForm.tsx +++ b/tauri-wallet/src/routes/delegate/DelegateForm.tsx @@ -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 = ({ setValue('nodeType', nodeType)} + disabled={isSubmitting} />