Fix wrong logic for highlighting Languages select

This commit is contained in:
Lim Chee Aun 2024-05-28 21:03:05 +08:00
parent 0a4aae51b7
commit b6a64b66c7

View file

@ -1364,7 +1364,7 @@ function Compose({
class={`toolbar-button ${ class={`toolbar-button ${
language !== prevLanguage.current || language !== prevLanguage.current ||
(autoDetectedLanguages?.length && (autoDetectedLanguages?.length &&
autoDetectedLanguages.includes(language)) !autoDetectedLanguages.includes(language))
? 'highlight' ? 'highlight'
: '' : ''
}`} }`}