Fix JS linting errors

adjust whitespaces and parentheses.
This commit is contained in:
Tomek Wytrębowicz 2022-10-18 00:17:22 +02:00
parent 9adc8a733f
commit b9842b6f99
3 changed files with 3 additions and 5 deletions

View File

@ -307,7 +307,7 @@ const formatProps = memoize(
[
isError,
isRequesting,
( new URLSearchParams( tableQuery ) ).toString(),
new URLSearchParams( tableQuery ).toString(),
get( revenueData, [ 'totalResults' ], 0 ),
get( revenueData, [ 'data', 'intervals' ], EMPTY_ARRAY ).length,
].join( ':' )

View File

@ -19,7 +19,7 @@ const DefaultDate = ( { value, onChange } ) => {
onChange( {
target: {
name: 'woocommerce_default_date_range',
value: ( new URLSearchParams( query ) ).toString(),
value: new URLSearchParams( query ).toString(),
},
} );
};

View File

@ -14,9 +14,7 @@ import './style.scss';
type QueryParams = EmbeddedBodyProps;
function isWPPage(
params: URLSearchParams
): Boolean {
function isWPPage( params: URLSearchParams ): boolean {
return params.get( 'page' ) !== null;
}