From a8eb9dff92a0072a54af075465955c6915733071 Mon Sep 17 00:00:00 2001 From: azeez1776 Date: Mon, 24 Apr 2023 23:25:21 +0300 Subject: [PATCH] included currency among the keys in fuse option, allow search with currency --- src/CountryService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CountryService.ts b/src/CountryService.ts index f8d79582..ecf07584 100644 --- a/src/CountryService.ts +++ b/src/CountryService.ts @@ -189,7 +189,7 @@ const DEFAULT_FUSE_OPTION = { distance: 100, maxPatternLength: 32, minMatchCharLength: 1, - keys: ['name', 'cca2', 'callingCode'], + keys: ['name', 'cca2', 'callingCode', 'currency'], } let fuse: Fuse export const search = (