From 3e4910ffa37c31258f8f73749de598d7f62ee5eb Mon Sep 17 00:00:00 2001 From: Darshan Sawardekar Date: Thu, 5 Sep 2024 13:30:26 +0530 Subject: [PATCH] Updates props per CR feedback --- .../free-listings/setup-free-listings/form-content.js | 2 +- js/src/components/free-listings/setup-free-listings/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/components/free-listings/setup-free-listings/form-content.js b/js/src/components/free-listings/setup-free-listings/form-content.js index d4f2295830..c1913d857f 100644 --- a/js/src/components/free-listings/setup-free-listings/form-content.js +++ b/js/src/components/free-listings/setup-free-listings/form-content.js @@ -26,7 +26,7 @@ import ConditionalSection from '.~/components/conditional-section'; */ const FormContent = ( { submitLabel = __( 'Complete setup', 'google-listings-and-ads' ), - hideTaxRates = false, + hideTaxRates, } ) => { const { values, isValidForm, handleSubmit, adapter } = useAdaptiveFormContext(); diff --git a/js/src/components/free-listings/setup-free-listings/index.js b/js/src/components/free-listings/setup-free-listings/index.js index 02886c51e4..867ff8b012 100644 --- a/js/src/components/free-listings/setup-free-listings/index.js +++ b/js/src/components/free-listings/setup-free-listings/index.js @@ -77,7 +77,7 @@ const getSettings = ( values ) => { * @param {() => void} [props.onContinue] Callback called once continue button is clicked. Could be async. While it's being resolved the form would turn into a saving state. * @param {string} [props.submitLabel] Submit button label, to be forwarded to `FormContent`. * @param {JSX.Element} props.headerTitle Title in the header block of this setup. - * @param {boolean} [props.hideTaxRates] Whether to hide tax rate section, to be forwarded to `FormContent`. + * @param {boolean} [props.hideTaxRates=false] Whether to hide tax rate section, to be forwarded to `FormContent`. */ const SetupFreeListings = ( { targetAudience,