Skip to content

Commit cb84ab3

Browse files
committed
Update code skipping and other cool stuff
1 parent 3091622 commit cb84ab3

File tree

4 files changed

+255
-141
lines changed

4 files changed

+255
-141
lines changed

web/src/api/party/cursor.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,20 @@ export const usePartyCursor = (party_id: string) => {
3232
}
3333
}
3434

35+
console.log('remainingCodes', remainingCodes);
36+
3537
submitEvent({
3638
type: 'PartyCodesSubmitted',
3739
codes: remainingCodes,
3840
user_id: 'deprecated',
3941
});
4042
}
4143

42-
const nextCursor = cursor + codeCount;
44+
let nextCursor = cursor + codeCount;
45+
46+
while (triedCodes.has(allCodes[nextCursor])) {
47+
nextCursor++;
48+
}
4349

4450
console.log('nextCursor', nextCursor);
4551

0 commit comments

Comments
 (0)