Skip to content

Commit c6bf4a3

Browse files
committed
fix: cursor feedback
1 parent 43f2ea3 commit c6bf4a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/keyring-eth-qr/src/qr-keyring-v2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export class QrKeyringV2
368368
): Promise<KeyringAccount[]> {
369369
const { addressIndex } = options;
370370

371-
if (typeof addressIndex !== 'number' || addressIndex < 0) {
371+
if (!Number.isInteger(addressIndex) || addressIndex < 0) {
372372
throw new Error(
373373
`Invalid addressIndex: ${String(
374374
addressIndex,
@@ -427,7 +427,7 @@ export class QrKeyringV2
427427
);
428428
}
429429

430-
if (options.groupIndex < 0) {
430+
if (!Number.isInteger(options.groupIndex) || options.groupIndex < 0) {
431431
throw new Error(
432432
`Invalid groupIndex: ${options.groupIndex}. Must be a non-negative integer.`,
433433
);

0 commit comments

Comments
 (0)