Skip to content

Commit

Permalink
Remove searchText and use text for currency search
Browse files Browse the repository at this point in the history
  • Loading branch information
zereraz committed Sep 2, 2022
1 parent 6e7c9c7 commit 6fc854e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ function getHeaderMessage(hasSelectableOptions, hasUserToInvite, searchValue, ma
*/
function getCurrencyListForSections(currencyOptions, searchValue) {
const filteredOptions = _.filter(currencyOptions, currencyOption => (
isSearchStringMatch(searchValue, currencyOption.searchText)));
isSearchStringMatch(searchValue, currencyOption.text)));

return {
// returns filtered options i.e. options with string match if search text is entered
Expand Down
1 change: 0 additions & 1 deletion src/pages/iou/IOUCurrencySelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class IOUCurrencySelection extends Component {
getCurrencyOptions() {
return _.map(this.props.currencyList, (currencyInfo, currencyCode) => ({
text: `${currencyCode} - ${CurrencySymbolUtils.getLocalizedCurrencySymbol(this.props.preferredLocale, currencyCode)}`,
searchText: `${currencyCode} - ${CurrencySymbolUtils.getLocalizedCurrencySymbol(this.props.preferredLocale, currencyCode)}`,
currencyCode,
keyForList: currencyCode,
}));
Expand Down

0 comments on commit 6fc854e

Please sign in to comment.