diff --git a/src/CONST.ts b/src/CONST.ts index 04a2152b19c..5a5db0ec10a 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -703,7 +703,6 @@ const CONST = { TOOLTIP_SENSE: 1000, TRIE_INITIALIZATION: 'trie_initialization', COMMENT_LENGTH_DEBOUNCE_TIME: 500, - SEARCH_FOR_REPORTS_DEBOUNCE_TIME: 300, SEARCH_OPTION_LIST_DEBOUNCE_TIME: 200, }, PRIORITY_MODE: { diff --git a/src/components/MoneyRequestConfirmationList.js b/src/components/MoneyRequestConfirmationList.js index fc3e4b09587..63181e4aea8 100755 --- a/src/components/MoneyRequestConfirmationList.js +++ b/src/components/MoneyRequestConfirmationList.js @@ -565,7 +565,6 @@ function MoneyRequestConfirmationList(props) { return ( { - Navigation.dismissModal(option.reportID); - }, - ); + Navigation.dismissModal(option.reportID); } else { Report.navigateToAndOpenReport([option.login]); } diff --git a/src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js b/src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js index 8d7d5cfceb7..4db9c4ce3fb 100644 --- a/src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js +++ b/src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js @@ -307,7 +307,6 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({ onAddToSelection={addParticipantToSelection} sections={sections} selectedOptions={participants} - value={searchTerm} onSelectRow={addSingleParticipant} onChangeText={setSearchTermAndSearchInServer} ref={forwardedRef} diff --git a/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js b/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js index a0841c1db76..f51e6d7e9fd 100755 --- a/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js +++ b/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js @@ -308,7 +308,8 @@ function MoneyRequestParticipantsSelector({ /> ), - [handleConfirmSelection, shouldShowSplitBillErrorMessage, styles.mb2, styles.ph1, translate], + // eslint-disable-next-line react-hooks/exhaustive-deps + [handleConfirmSelection, shouldShowSplitBillErrorMessage, translate], ); return ( diff --git a/src/pages/tasks/TaskAssigneeSelectorModal.js b/src/pages/tasks/TaskAssigneeSelectorModal.js index 4d5292cd606..5c271284222 100644 --- a/src/pages/tasks/TaskAssigneeSelectorModal.js +++ b/src/pages/tasks/TaskAssigneeSelectorModal.js @@ -180,8 +180,6 @@ function TaskAssigneeSelectorModal(props) { // Check to see if we're creating a new task // If there's no route params, we're creating a new task if (!props.route.params && option.accountID) { - // Clear out the state value, set the assignee and navigate back to the NewTaskPage - setSearchValue(''); Task.setAssigneeValue(option.login, option.accountID, props.task.shareDestination, OptionsListUtils.isCurrentUser(option)); return Navigation.goBack(ROUTES.NEW_TASK); } diff --git a/src/pages/tasks/TaskShareDestinationSelectorModal.js b/src/pages/tasks/TaskShareDestinationSelectorModal.js index c1617ef5870..64fd5f50b61 100644 --- a/src/pages/tasks/TaskShareDestinationSelectorModal.js +++ b/src/pages/tasks/TaskShareDestinationSelectorModal.js @@ -110,8 +110,6 @@ function TaskShareDestinationSelectorModal(props) { } if (option.reportID) { - // Clear out the state value, set the assignee and navigate back to the NewTaskPage - setSearchValue(''); Task.setShareDestinationValue(option.reportID); Navigation.goBack(ROUTES.NEW_TASK); }