This commit is contained in:
Jonathan Belcher 2018-11-14 15:33:13 -05:00 committed by GitHub
parent 384ef910fd
commit 5132e81b7c
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ export default {
* Returns true if a products request is pending.
*
* @param {Object} state Current state
* @return {Object} True if the `getProducts` request is pending, false otherwise
* @return {Boolean} True if the `getProducts` request is pending, false otherwise
*/
isGetProductsRequesting( state, ...args ) {
return select( 'core/data' ).isResolving( 'wc-admin', 'getProducts', args );
@ -41,7 +41,7 @@ export default {
*
* @param {Object} state Current state
* @param {Object} query Report query paremters
* @return {Object} True if the `getProducts` request has failed, false otherwise
* @return {Boolean} True if the `getProducts` request has failed, false otherwise
*/
isGetProductsError( state, query ) {
return ERROR === getProducts( state, query );