From f04899fd8eb14a063ee3f96934a035a2708f451a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Wed, 31 Jul 2024 22:45:34 +0200 Subject: [PATCH] chore: simplify punycode toUnicode --- assets/pages/info/TldPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/pages/info/TldPage.tsx b/assets/pages/info/TldPage.tsx index 223d5a5..14d10f6 100644 --- a/assets/pages/info/TldPage.tsx +++ b/assets/pages/info/TldPage.tsx @@ -50,20 +50,20 @@ function TldTable(filters: FiltersType) { return { key: tld.tld, - TLD: tld.tld.startsWith('xn--') ? punycode.toUnicode(tld.tld) : tld.tld, + TLD: punycode.toUnicode(tld.tld), Flag: toEmoji(tld.tld), Country: countryName } case 'gTLD': return { key: tld.tld, - TLD: tld.tld.startsWith('xn--') ? punycode.toUnicode(tld.tld) : tld.tld, + TLD: punycode.toUnicode(tld.tld), Operator: tld.registryOperator } default: return { key: tld.tld, - TLD: tld.tld.startsWith('xn--') ? punycode.toUnicode(tld.tld) : tld.tld + TLD: punycode.toUnicode(tld.tld) } } }))