mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-12-01 01:23:14 +00:00
fix: minor changes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user