Fixes code comments on return value type (https://github.com/woocommerce/woocommerce-admin/pull/850)
This commit is contained in:
parent
384ef910fd
commit
5132e81b7c
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue