From 31d41b9203822a92e43adf73e03d39648dcc9b79 Mon Sep 17 00:00:00 2001 From: Jakub Kosmydel <104823336+kosmydel@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:16:11 +0100 Subject: [PATCH] cleanup --- src/components/Form/FormProvider.tsx | 1 - src/pages/workspace/taxes/WorkspaceNewTaxPage.tsx | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/components/Form/FormProvider.tsx b/src/components/Form/FormProvider.tsx index 2195805bb7d9..ee3b3607401e 100644 --- a/src/components/Form/FormProvider.tsx +++ b/src/components/Form/FormProvider.tsx @@ -102,7 +102,6 @@ function FormProvider( const onValidate = useCallback( (values: FormOnyxValues, shouldClearServerError = true) => { - console.log('onValidate', values); const trimmedStringValues = ValidationUtils.prepareValues(values); if (shouldClearServerError) { diff --git a/src/pages/workspace/taxes/WorkspaceNewTaxPage.tsx b/src/pages/workspace/taxes/WorkspaceNewTaxPage.tsx index d9f9f52f32ff..cd226554c364 100644 --- a/src/pages/workspace/taxes/WorkspaceNewTaxPage.tsx +++ b/src/pages/workspace/taxes/WorkspaceNewTaxPage.tsx @@ -11,7 +11,6 @@ import Text from '@components/Text'; import TextPicker from '@components/TextPicker'; import useLocalize from '@hooks/useLocalize'; import useThemeStyles from '@hooks/useThemeStyles'; -import {clearDraftValues} from '@libs/actions/FormActions'; import {createWorkspaceTax, getNextTaxID, getTaxValueWithPercentage} from '@libs/actions/TaxRate'; import Navigation from '@libs/Navigation/Navigation'; import type {SettingsNavigatorParamList} from '@libs/Navigation/types'; @@ -78,7 +77,6 @@ function WorkspaceNewTaxPage({ submitButtonText={translate('common.save')} enabledWhenOffline shouldValidateOnBlur={false} - shouldValidateOnChange disablePressOnEnter={false} >