Skip to content

Commit

Permalink
Remove use of loadash isequal
Browse files Browse the repository at this point in the history
  • Loading branch information
moon0326 committed May 13, 2024
1 parent 8d7c522 commit 6e72292
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import classNames from 'classnames';
import { useCopyToClipboard } from '@wordpress/compose';
import { recordEvent } from '@woocommerce/tracks';
import { getSetting } from '@woocommerce/settings';
import { isEqual } from 'lodash';

/**
* Internal dependencies
Expand Down Expand Up @@ -59,7 +58,10 @@ const SiteVisibility = () => {
'woocommerce-save-button'
)[ 0 ];
if ( saveButton ) {
saveButton.disabled = isEqual( initValues, currentValues );
saveButton.disabled =
initValues.comingSoon === currentValues.comingSoon &&
initValues.storePagesOnly === currentValues.storePagesOnly &&
initValues.privateLink === currentValues.privateLink;
}
}, [ comingSoon, storePagesOnly, privateLink ] );

Expand Down

0 comments on commit 6e72292

Please sign in to comment.