fix null case

This commit is contained in:
Jade (Rose) Rowland
2025-12-03 15:25:05 -05:00
parent b9fce15042
commit c1a185e852
+1 -1
View File
@@ -20,7 +20,7 @@ export function jumpToCharacter(view, character, direction = 1) {
jumpPos = characterPositions.reverse().find((x) => x < pos + 1) ?? characterPositions.at(0);
}
if (!jumpPos) {
if (jumpPos == null) {
return false;
}
dispatch({