From 72cf4311a10c7ff3673340e5907917b5616610de Mon Sep 17 00:00:00 2001 From: jero Date: Sun, 18 Aug 2019 16:52:40 -0500 Subject: [PATCH] fix(fetproducts): apply properly Flow's typing --- src/app/store/actions/fetchProducts.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/store/actions/fetchProducts.js b/src/app/store/actions/fetchProducts.js index 4ac9a212..b4bd6d8e 100644 --- a/src/app/store/actions/fetchProducts.js +++ b/src/app/store/actions/fetchProducts.js @@ -9,7 +9,7 @@ import type { State } from '@/store/types/State'; import * as types from '../ActionTypes'; -export default function fetchProducts(query: string = ''): AsyncAction { +export default function fetchProducts(query: string = ''): AsyncAction { return { types: [ types.GET_PRODUCTS_REQUEST, @@ -19,8 +19,6 @@ export default function fetchProducts(query: string = ''): AsyncAction api.get(query), shouldCallAPI: (state: State) => { const products = getProducts(state); - // eslint-disable-next-line no-console - console.log('products', products); return !products.length; }, };