Skip to content

Commit c5f72b5

Browse files
committed
Double text issue, otherwise close
1 parent 2af0b2c commit c5f72b5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/feedback-components/src/feedback/text-visualizer.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,6 @@ export function HighlightedText(props: {
205205
const claimedRanges: Array<[number, number]> = [];
206206

207207
for (const tag of sortedTags) {
208-
const found = tag.text === "Gowganda Formation"
209-
210-
if (found) {
211-
console.log("Found tag:", tag);
212-
}
213208

214209
// Skip inner tags if bigger tag is selected — keep as is
215210
if (
@@ -253,16 +248,11 @@ export function HighlightedText(props: {
253248
rangesToRender = [[tagStart, tagEnd]];
254249
}
255250

256-
if(found) {
257-
console.log("Ranges to render for tag:", tag, rangesToRender);
258-
}
259-
260251
for (const [s, e] of rangesToRender) {
261252
if (start < s) {
262253
parts.push(text.slice(start, s));
263254
}
264255

265-
266256
const index = parts.indexOf(tag.text);
267257

268258
if(index !== -1) {

0 commit comments

Comments
 (0)