Skip to content

Commit

Permalink
Fix linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvinb committed Nov 1, 2024
1 parent a49f43f commit 1e0ed3b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
12 changes: 4 additions & 8 deletions js/src/components/contact-information/store-address-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ import './store-address-card.scss';
*
* @fires gla_edit_wc_store_address Whenever "Edit in WooCommerce Settings" button is clicked.
* @fires gla_wc_store_address_validation Whenever the new store address data is fetched after clicking "Refresh to sync" button.
*
* @param {Object} props React props.
*
* @return {JSX.Element} Filled AccountCard component.
*/
const StoreAddressCard = () => {
Expand Down Expand Up @@ -149,7 +146,8 @@ const StoreAddressCard = () => {
<p>
{ createInterpolateElement(
__(
'Your store address is required by Google for verification. This information won’t be public. Complete that in <link>WooCommerce settings</link>.'
'Your store address is required by Google for verification. This information won’t be public. Complete that in <link>WooCommerce settings</link>.',
'google-listings-and-ads'
),
{
link: settingsLink,
Expand All @@ -162,12 +160,10 @@ const StoreAddressCard = () => {
<>
{ addressContent }
{ ! isAddressFilled && (
<ValidationErrors
messages={ mapStoreAddressErrors( data ) }
/>
<ValidationErrors messages={ mapStoreAddressErrors( data ) } />
) }
</>
)
);

return (
<AccountCard
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion js/src/hooks/useStoreAddressSynced.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function useStoreAddressSynced() {

return {
isAddressFilled: ! missingRequiredFields.length,
isAddressSynced: ! isMCAddressDifferent
isAddressSynced: ! isMCAddressDifferent,
};
},
[ isReady ]
Expand Down
2 changes: 1 addition & 1 deletion js/src/setup-mc/setup-stepper/setup-accounts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const SetupAccounts = ( props ) => {
isReady: isGoogleMCReady,
} = useGoogleMCAccount();
const { hasFinishedResolution } = useGoogleAdsAccount();
const { isAddressFilled, isAddressSynced } = useStoreAddressSynced();
const { isAddressSynced } = useStoreAddressSynced();
const isGoogleAdsReady = useGoogleAdsAccountReady();

/**
Expand Down

0 comments on commit 1e0ed3b

Please sign in to comment.