We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 242121a commit 594b22dCopy full SHA for 594b22d
1 file changed
src/modules/core/bump.listener.ts
@@ -64,8 +64,12 @@ export async function handleBumpStreak(
64
// check if the user dethroned another user
65
66
const allStreaks = getStreaks(extractStreaks(await getAllBumps()));
67
- if (allStreaks.length > 1) {
68
- const mostRecent = allStreaks[allStreaks.length - 2];
+ if (
+ allStreaks.length > 1 &&
69
+ streak.current === 1 // just started a new streak
70
+ ) {
71
+ // allStreaks[-1] will be the current streak
72
+ const mostRecent = allStreaks[allStreaks.length - 2]; // so check the one before that
73
logger.debug(`Most recent streak:`, mostRecent);
74
logger.debug(
75
"Most recent streaks:",
0 commit comments