From 508307acabc219aea997b97a790649df37f40a43 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Mon, 5 Sep 2022 15:31:43 +0200 Subject: [PATCH] fix search by owner id/lot (#154) (#171) remove an hardcoded SEARCH_TYPE.USER that was added in #127. --- js/extension/components/search/OwnersSearch.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/extension/components/search/OwnersSearch.jsx b/js/extension/components/search/OwnersSearch.jsx index eb43e17..a05428c 100644 --- a/js/extension/components/search/OwnersSearch.jsx +++ b/js/extension/components/search/OwnersSearch.jsx @@ -46,7 +46,7 @@ export default function OwnersSearch({ loading, onOwnersSearch = () => {}}) { valid={isSearchValid(currentTab, searchState[currentTab])} onClear={() => resetFormState(currentTab)} onSearch={() => { - onOwnersSearch(SEARCH_TYPES.USER, searchState[currentTab]); + onOwnersSearch(currentTab, searchState[currentTab]); }} /> );