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 9, 2023
1 parent a1caeaf commit 15d5856
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/channels/signature.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const getSubscriptionMessageV2 = (
channel: string,
userAddress: string,
action: channelActionType,
userSetting?: string
userSetting?: string | null
) => {
const actionTypeKey =
action === 'Unsubscribe' ? 'unsubscriber' : 'subscriber';
Expand Down
2 changes: 1 addition & 1 deletion packages/restapi/src/lib/channels/subscribeV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type SubscribeOptionsV2Type = {
signer: SignerType;
channelAddress: string;
userAddress: string;
settings?: string;
settings?: string | null;
verifyingContractAddress?: string;
env?: ENV;
onSuccess?: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,9 @@ export class PushNotificationBaseClass {
}

protected getMinimalUserSetting(setting: UserSetting[]) {
if(!setting){
return null;
}
let userSetting = '';
let numberOfSettings = 0;
for (let i = 0; i < setting.length; i++) {
Expand Down

0 comments on commit 15d5856

Please sign in to comment.