Correctly update extensions language selection

Was only updated after clicking "OK" once.
This was caused due only updating the language selection once the app language was changed or in case the selected languages (after clicking "OK") changed
This commit is contained in:
schroda
2023-10-15 13:04:31 +02:00
parent fbcc1fb91a
commit 16ebfcb51f

View File

@@ -165,7 +165,7 @@ export default function MangaExtensions() {
<LangSelect shownLangs={shownLangs} setShownLangs={setShownLangs} allLangs={allLangs} />
</>,
);
}, [t, shownLangs]);
}, [t, shownLangs, allLangs]);
useEffect(() => {
const dropHandler = async (e: Event) => {