From f905f404b4a5992321a27c4019454078a82e74ef Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Tue, 19 Dec 2023 13:55:12 +0530 Subject: [PATCH] fix: fix viem signer issue (#931) --- packages/restapi/src/lib/pushapi/PushAPI.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/restapi/src/lib/pushapi/PushAPI.ts b/packages/restapi/src/lib/pushapi/PushAPI.ts index 0549b5643..4b8de488d 100644 --- a/packages/restapi/src/lib/pushapi/PushAPI.ts +++ b/packages/restapi/src/lib/pushapi/PushAPI.ts @@ -97,7 +97,8 @@ export class PushAPI { if ( args.length === 1 && typeof args[0] === 'object' && - 'account' in args[0] + 'account' in args[0] && + typeof args[0].account === 'string' ) { // Single options object provided options = args[0];