From 2c9afd5ed76b4bd0952ca489a42a8815362d47e0 Mon Sep 17 00:00:00 2001 From: Allie Mims Date: Tue, 5 Dec 2023 11:16:10 -0500 Subject: [PATCH] Optimize variable declaration --- .../advanced-settings/cards/international-ip-address.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/settings/fraud-protection/advanced-settings/cards/international-ip-address.tsx b/client/settings/fraud-protection/advanced-settings/cards/international-ip-address.tsx index 8681b2631d6..34b6e342994 100644 --- a/client/settings/fraud-protection/advanced-settings/cards/international-ip-address.tsx +++ b/client/settings/fraud-protection/advanced-settings/cards/international-ip-address.tsx @@ -18,8 +18,7 @@ import { getAdminUrl } from 'wcpay/utils'; import { getSupportedCountriesType } from '../utils'; const InternationalIPAddressRuleCard: React.FC = () => { - const supportedCountriesType = getSupportedCountriesType(); - const supportsAllCountries = 'all' === supportedCountriesType; + const supportsAllCountries = 'all' === getSupportedCountriesType(); return (