Skip to content

Commit 2b27fd5

Browse files
committed
fix: Correct console.warn message in getThatMarks
1 parent 8459447 commit 2b27fd5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/test-case-component/src/helpers/getThatMarks.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ import { addContentRangeDecorations } from "./addContentRangeDecorations";
44

55
function getThatMarks({ thatMark }: { thatMark: TargetPlainObject[] }): DecorationItem[] {
66
const decorations: DecorationItem[] = [];
7-
87
if (thatMark === undefined || thatMark.length === 0) {
9-
console.warn("finalStateSourceMarks are undefined. Skipping decoration generation.");
8+
console.warn("finalStateThatMarks are undefined. Skipping decoration generation.");
109
return []
1110
} else {
1211
addContentRangeDecorations({
1312
marks: thatMark,
1413
highlightClass: "thatMark", decorations
1514
});
1615
}
17-
1816
return decorations
1917
}
2018

0 commit comments

Comments
 (0)