Skip to content

Commit 2cf1ced

Browse files
committed
Ignore intl.display names
1 parent 6b7742f commit 2cf1ced

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/plugins/filters.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Vue.filter('phoneNumber', (value: string): string => {
1212
Vue.filter('phoneCountry', (value: string): string => {
1313
const phoneNumber = parsePhoneNumber(value)
1414
if (phoneNumber && phoneNumber.country) {
15+
// @ts-ignore
1516
const regionNames = new Intl.DisplayNames(undefined, { type: 'region' })
1617
return regionNames.of(phoneNumber.country) ?? 'earth'
1718
}

0 commit comments

Comments
 (0)