chore: selected language isn't included in language options

This commit is contained in:
utin-francis-peter
2024-06-23 23:19:14 +01:00
parent 35b29a0a1e
commit 8c04f5b3f1

View File

@@ -107,7 +107,10 @@ const General: React.FC = () => {
{t('settings.general.selectLanguage')}
</p>
<Dropdown
options={languageOptions}
options={languageOptions.filter(
(languageOption) =>
languageOption.value !== selectedLanguage?.value,
)}
selectedValue={selectedLanguage ?? languageOptions[0]}
onSelect={(selectedOption: { label: string; value: string }) => {
setSelectedLanguage(selectedOption);