Skip to content

Commit c747b04

Browse files
committed
Fix term popup not showing for uppercase terms
1 parent 05c56de commit c747b04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

translate/src/modules/originalstring/components/OriginalString.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function OriginalString({
6868
const markedTerm = target.dataset['match'];
6969
if (markedTerm) {
7070
setPopupTerms(
71-
terms.terms?.filter((t) => t.text.toLowerCase() === markedTerm) ??
71+
terms.terms?.filter((t) => t.text.toLowerCase() === markedTerm.toLowerCase()) ??
7272
[],
7373
);
7474
}

0 commit comments

Comments
 (0)