fix(settings): keep the language and save settings one after the other

This commit is contained in:
lobo committed 2026-09-29 13:27:31 +02:00
1 parent 14dd59f9e0
commit f605917874
25 files changed
+423 -98

No files matched your search

+4 -4
View File
@@ -89,7 +89,7 @@ export default function GameLibrary() {
}
if (!response.ok) {
setError(t('LIBRARY.ERROR_LOAD'));
setError('LIBRARY.ERROR_LOAD');
return;
}
@@ -97,11 +97,11 @@ export default function GameLibrary() {
setData(json);
} catch (err) {
console.error('Library load error:', err);
setError(t('INFO.ERROR.NETWORK_FAILURE'));
setError('INFO.ERROR.NETWORK_FAILURE');
} finally {
setIsLoading(false);
}
}, [navigate, expireSession, page, size, sort, listStatus, q, listShortOnly, hiddenOnly, t]);
}, [navigate, expireSession, page, size, sort, listStatus, q, listShortOnly, hiddenOnly]);
useEffect(() => {
load();
@@ -287,7 +287,7 @@ export default function GameLibrary() {
</Card>
)}
{error && <div className="py-12 text-center text-destructive">{error}</div>}
{error && <div className="py-12 text-center text-destructive">{t(error)}</div>}
{ready && data.content.length === 0 && (
<Card className="items-center py-16 text-center text-muted-foreground">