Skip to content

Commit

Permalink
Move condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
asvinb committed Nov 6, 2024
1 parent 49c26f0 commit afdb054
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const StoreAddressCard = () => {

return (
<AccountCard
className="'gla-store-address-card"
className="gla-store-address-card"
appearance={ APPEARANCE.ADDRESS }
alignIcon="top"
alignIndicator="top"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ const ConnectedGoogleComboAccountCard = () => {
const { hasGoogleMCConnection, hasFinishedResolution } =
useGoogleMCAccount();

const showAddressCard = hasFinishedResolution && hasGoogleMCConnection;

if ( ! hasDetermined ) {
return <SpinnerCard />;
}
Expand All @@ -40,6 +38,8 @@ const ConnectedGoogleComboAccountCard = () => {
( editMode && hasExistingGoogleAdsAccounts ) ||
( ! isConnected && hasExistingGoogleAdsAccounts );

const showAddressCard = hasFinishedResolution && hasGoogleMCConnection;

return (
<div>
<AccountCard
Expand Down

0 comments on commit afdb054

Please sign in to comment.