diff --git a/wallet-web/components/bond/utils.ts b/wallet-web/components/bond/utils.ts index 3d3c337582..e232328854 100644 --- a/wallet-web/components/bond/utils.ts +++ b/wallet-web/components/bond/utils.ts @@ -30,9 +30,7 @@ export const validateKey = (key: string): boolean => { } } -export const isValidHostname = (value) => { - if (typeof value !== 'string') return false - +export const isValidHostname = (value: string) => { const validHostnameChars = /^[a-zA-Z0-9-.]{1,253}\.?$/g if (!validHostnameChars.test(value)) { return false