Skip to content

Commit 25ec0fd

Browse files
authored
fix: fix initial session count (#2473)
1 parent 488df36 commit 25ec0fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/passport/sdk/src/zkEvm/sessionActivity/sessionActivity.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ syncSendCount();
3333

3434
const incrementSendCount = (clientId: string) => {
3535
syncSendCount();
36+
if (!sendCount[clientId]) {
37+
sendCount[clientId] = 0;
38+
}
3639
sendCount[clientId]++;
3740
setItem(SESSION_ACTIVITY_COUNT_KEY, sendCount);
3841
// Reset checkCount to zero on sending

0 commit comments

Comments
 (0)