mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
add iso codes to phone data
This commit is contained in:
1 parent
4737b103c0
commit
e3bed5ae67
3 files changed
+224
-6
No files matched your search
@@ -95,7 +95,7 @@ export default {
|
||||
countryCode () {
|
||||
const browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
const browserTz = browserTimeZone.split('/')[1]
|
||||
const country = phoneData.find(([a, b, c, tz]) => tz.includes(browserTz))
|
||||
const country = phoneData.find(([a, b, c, e, tz]) => tz.includes(browserTz))
|
||||
|
||||
return country[0]
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user