From 7393991046e527cc920be0ec34c2a0cb882b1277 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 17 Jan 2021 04:47:11 -0800 Subject: [PATCH] log search result errors We showed an error to the user, but nothing in the console! Now we have it :) --- src/app/WardrobePage/SearchPanel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/WardrobePage/SearchPanel.js b/src/app/WardrobePage/SearchPanel.js index c7eef5a..2fde4ca 100644 --- a/src/app/WardrobePage/SearchPanel.js +++ b/src/app/WardrobePage/SearchPanel.js @@ -331,6 +331,9 @@ function useSearchResults(query, outfitState) { setIsEndOfResults(true); } }, + onError: (e) => { + console.error("Error loading search results", e); + }, } );