Skip to content

Commit

Permalink
fix: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akp111 committed Oct 10, 2023
1 parent 15d5856 commit 9750680
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/restapi/src/lib/pushNotification/notification.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Constants, { ENV } from '../constants';
import {
SignerType,
} from '../types';
import { SignerType } from '../types';
import {
SubscribeUnsubscribeOptions,
SubscriptionOptions,
Expand Down Expand Up @@ -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,
});
Expand Down

0 comments on commit 9750680

Please sign in to comment.