From 9750680b7975216297ddf17b5c0bf8075b6ff8d4 Mon Sep 17 00:00:00 2001 From: akp111 Date: Tue, 10 Oct 2023 12:26:23 +0530 Subject: [PATCH] fix: minor fix --- packages/restapi/src/lib/pushNotification/notification.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/restapi/src/lib/pushNotification/notification.ts b/packages/restapi/src/lib/pushNotification/notification.ts index c4bafb021..ebd7ade15 100644 --- a/packages/restapi/src/lib/pushNotification/notification.ts +++ b/packages/restapi/src/lib/pushNotification/notification.ts @@ -1,7 +1,5 @@ import Constants, { ENV } from '../constants'; -import { - SignerType, -} from '../types'; +import { SignerType } from '../types'; import { SubscribeUnsubscribeOptions, SubscriptionOptions, @@ -143,13 +141,13 @@ export class Notification extends PushNotificationBaseClass { parseInt(caipDetail?.networkId as string) ); // convert the setting to minimal version - const minimalSetting = this.getMinimalUserSetting(settings!) + const minimalSetting = this.getMinimalUserSetting(settings!); return await PUSH_CHANNEL.subscribeV2({ signer: this.signer!, channelAddress: channel, userAddress: userAddressInCaip, env: this.env, - settings: settings? '' : minimalSetting, + settings: minimalSetting ?? '', onSuccess: onSuccess, onError: onError, });