fix type errors

This commit is contained in:
fmtabbara
2022-07-04 13:46:00 +01:00
parent f4215d192f
commit bfd86d1462
2 changed files with 2 additions and 6 deletions
@@ -330,9 +330,7 @@ export const GatewayForm = ({
type="submit"
data-testid="submit-button"
disableElevation
onClick={handleSubmit((data) =>
handleValidateAndGetFee(data, data.tokenPool === 'balance' ? bondGateway : vestingBondGateway),
)}
onClick={handleSubmit(handleValidateAndGetFee)}
endIcon={isSubmitting && <CircularProgress size={20} />}
size="large"
>
@@ -348,9 +348,7 @@ export const MixnodeForm = ({
type="submit"
data-testid="submit-button"
disableElevation
onClick={handleSubmit((data) =>
handleValidateAndGetFee(data, data.tokenPool === 'balance' ? bondMixNode : vestingBondMixNode),
)}
onClick={handleSubmit(handleValidateAndGetFee)}
endIcon={isSubmitting && <CircularProgress size={20} />}
size="large"
>