fix: minor changes

This commit is contained in:
ManishMadan2882
2024-05-28 21:35:10 +05:30
parent 99952a393f
commit fa3a9fe70e
6 changed files with 54 additions and 213 deletions

View File

@@ -43,7 +43,9 @@ const General: React.FC = () => {
const dispatch = useDispatch();
const locale = localStorage.getItem('docsgpt-locale');
const [selectedLanguage, setSelectedLanguage] = React.useState(
locale ? languageOptions.find((option) => option.value === locale) : 'en',
locale
? languageOptions.find((option) => option.value === locale)
: languageOptions[0],
);
const selectedPrompt = useSelector(selectPrompt);