diff --git a/packages/passport/sdk/src/zkEvm/sessionActivity/sessionActivity.ts b/packages/passport/sdk/src/zkEvm/sessionActivity/sessionActivity.ts index 9c68fa18db..13e5bde985 100644 --- a/packages/passport/sdk/src/zkEvm/sessionActivity/sessionActivity.ts +++ b/packages/passport/sdk/src/zkEvm/sessionActivity/sessionActivity.ts @@ -33,6 +33,9 @@ syncSendCount(); const incrementSendCount = (clientId: string) => { syncSendCount(); + if (!sendCount[clientId]) { + sendCount[clientId] = 0; + } sendCount[clientId]++; setItem(SESSION_ACTIVITY_COUNT_KEY, sendCount); // Reset checkCount to zero on sending