From 79eefc17bf2f4eb744af350f2f95ff7074513140 Mon Sep 17 00:00:00 2001 From: Dmitry Zelensky Date: Fri, 24 Apr 2026 11:30:17 +0200 Subject: [PATCH] fix: correct return type annotation in isNeedResetError (AccountChanged -> SessionExpired) --- lib/utils/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/common.ts b/lib/utils/common.ts index 7fb0ab2..fd67dd1 100644 --- a/lib/utils/common.ts +++ b/lib/utils/common.ts @@ -42,7 +42,7 @@ export function parseError(errorResponse: unknown) { export function isNeedResetError( errorResponse: unknown, -): errorResponse is {data: {code: ErrorCode.AccountChanged | ErrorCode.AccountChanged}} { +): errorResponse is {data: {code: ErrorCode.AccountChanged | ErrorCode.SessionExpired}} { const code = _get(errorResponse, 'data.code'); return code === ErrorCode.AccountChanged || code === ErrorCode.SessionExpired;