Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
frosso committed Aug 14, 2024
1 parent 6bcd6b3 commit 90642ec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React, { useContext, useEffect, useState } from 'react';
import { sprintf, __, _n } from '@wordpress/i18n';
import { Button, Card, CardBody } from '@wordpress/components';
import interpolateComponents from '@automattic/interpolate-components';
import { without, isString, capitalize } from 'lodash';
import _ from 'lodash';

/**
* Internal dependencies
Expand Down Expand Up @@ -150,7 +150,7 @@ const AddCurrenciesTask = () => {
] );
} else {
setSelectedCurrencyCodes(
without( selectedCurrencyCodes, currencyCode )
_.without( selectedCurrencyCodes, currencyCode )
);
}
};
Expand Down Expand Up @@ -180,7 +180,7 @@ const AddCurrenciesTask = () => {
checked={ selectedCurrencyCodes.includes( code ) }
onChange={ handleChange }
currency={ availableCurrencies[ code ] }
testId={ isString( testId ) ? testId : null }
testId={ _.isString( testId ) ? testId : null }
/>
);

Expand All @@ -196,7 +196,7 @@ const AddCurrenciesTask = () => {
'woocommerce-payments'
),
selectedCurrencyCodesLength < 10
? capitalize( numberWords[ selectedCurrencyCodesLength ] )
? _.capitalize( numberWords[ selectedCurrencyCodesLength ] )
: selectedCurrencyCodesLength
) }
index={ 1 }
Expand Down

0 comments on commit 90642ec

Please sign in to comment.