Skip to content

Commit 3ebed05

Browse files
committed
fix lint
1 parent 2415bde commit 3ebed05

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/libs/SearchQueryUtils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -962,29 +962,29 @@ function getCurrentSearchQueryJSON() {
962962

963963
function getTodoSearchQuery(action: ValueOf<typeof CONST.SEARCH.TODO_SEARCH_KEYS>, userAccountID: number | undefined) {
964964
switch (action) {
965-
case 'submit':
965+
case CONST.SEARCH.TODO_SEARCH_KEYS.SUBMIT:
966966
return buildQueryStringFromFilterFormValues({
967967
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
968968
groupBy: CONST.SEARCH.GROUP_BY.REPORTS,
969969
status: CONST.SEARCH.STATUS.EXPENSE.DRAFTS,
970970
from: [`${userAccountID}`],
971971
});
972-
case 'approve':
972+
case CONST.SEARCH.TODO_SEARCH_KEYS.APPROVE:
973973
return buildQueryStringFromFilterFormValues({
974974
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
975975
groupBy: CONST.SEARCH.GROUP_BY.REPORTS,
976976
action: CONST.SEARCH.ACTION_FILTERS.APPROVE,
977977
to: [`${userAccountID}`],
978978
});
979-
case 'pay':
979+
case CONST.SEARCH.TODO_SEARCH_KEYS.PAY:
980980
return buildQueryStringFromFilterFormValues({
981981
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
982982
groupBy: CONST.SEARCH.GROUP_BY.REPORTS,
983983
action: CONST.SEARCH.ACTION_FILTERS.PAY,
984984
reimbursable: CONST.SEARCH.BOOLEAN.YES,
985985
payer: userAccountID?.toString(),
986986
});
987-
case 'export':
987+
case CONST.SEARCH.TODO_SEARCH_KEYS.EXPORT:
988988
return buildQueryStringFromFilterFormValues({
989989
groupBy: CONST.SEARCH.GROUP_BY.REPORTS,
990990
action: CONST.SEARCH.ACTION_FILTERS.EXPORT,

0 commit comments

Comments
 (0)