From 63c3da2af27fcfb1a9893ade03543e3a30949c8d Mon Sep 17 00:00:00 2001
From: Ruben Beltran del Rio <ruben@unlimited.pizza>
Date: Mon, 12 Apr 2021 15:42:43 +0200
Subject: Allow for conditional reply

---
 src/components/language_selector/language_selector.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/language_selector/language_selector.svelte')

diff --git a/src/components/language_selector/language_selector.svelte b/src/components/language_selector/language_selector.svelte
index 67c0814..3ac4894 100644
--- a/src/components/language_selector/language_selector.svelte
+++ b/src/components/language_selector/language_selector.svelte
@@ -3,9 +3,9 @@
   import { getLangNameFromCode } from 'language-name-map';
 
   $: namedLocales = $locales
-    .map((locale) => ({
-      code: locale,
-      ...getLangNameFromCode(locale)
+    .map((code) => ({
+      code,
+      ...getLangNameFromCode(code)
     }))
     .sort((a, b) => a.native - b.native);
 
-- 
cgit 

