From c16fb8c906de3333b5fb9497cfd07721eca7bc69 Mon Sep 17 00:00:00 2001 From: kt programs Date: Mon, 30 May 2022 10:04:34 +0800 Subject: [PATCH] Fix spelling of SORT_ASCENDING in search constants --- flow-typed/search.js | 2 +- ui/component/searchOptions/view.jsx | 2 +- ui/constants/search.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flow-typed/search.js b/flow-typed/search.js index 0c46124b8..c53e3ca41 100644 --- a/flow-typed/search.js +++ b/flow-typed/search.js @@ -15,7 +15,7 @@ declare type SearchOptions = { MEDIA_IMAGE: string, MEDIA_APPLICATION: string, SORT: string, - SORT_ACCENDING: string, + SORT_ASCENDING: string, SORT_DESCENDING: string, EXACT: string, TIME_FILTER: string, diff --git a/ui/component/searchOptions/view.jsx b/ui/component/searchOptions/view.jsx index dad9e380e..dc04ce423 100644 --- a/ui/component/searchOptions/view.jsx +++ b/ui/component/searchOptions/view.jsx @@ -33,7 +33,7 @@ const TIME_FILTER = { const SORT_BY = { '': 'Relevance', [SEARCH_OPTIONS.SORT_DESCENDING]: 'Newest first', - [SEARCH_OPTIONS.SORT_ACCENDING]: 'Oldest first', + [SEARCH_OPTIONS.SORT_ASCENDING]: 'Oldest first', }; type Props = { diff --git a/ui/constants/search.js b/ui/constants/search.js index 31c9d02d1..d4a4a6a8b 100644 --- a/ui/constants/search.js +++ b/ui/constants/search.js @@ -24,7 +24,7 @@ export const SEARCH_OPTIONS = { MEDIA_IMAGE: 'image', MEDIA_APPLICATION: 'application', SORT: 'sort_by', - SORT_ACCENDING: '^release_time', + SORT_ASCENDING: '^release_time', SORT_DESCENDING: 'release_time', EXACT: 'exact', PRICE_FILTER_FREE: 'free_only',