Skip to content

Commit

Permalink
chore: category not required in screen tracking in react native packa…
Browse files Browse the repository at this point in the history
…ge (#314)
  • Loading branch information
ami-aman authored Sep 4, 2024
1 parent c48ec7a commit 49a6361
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/customerio-cdp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@ export class CustomerIO {

static readonly screen = async (
title: string,
category?: string,
properties?: Record<string, any>
) => {
CustomerIO.assrtInitialized();
if (!title) {
throw new Error('You must provide a name to screen');
}
return NativeCustomerIO.screen(title, category, properties);
return NativeCustomerIO.screen(title, properties);
};

static readonly setProfileAttributes = async (
Expand Down

0 comments on commit 49a6361

Please sign in to comment.