Skip to content

Commit

Permalink
SS-4150 : remove wrong imports (#2397)
Browse files Browse the repository at this point in the history
* 1.16.2 iOS Release (#2393)

* fix

* fix

* fix

* fix

---------

Co-authored-by: Dmitry Fedoseyev <[email protected]>
  • Loading branch information
hdz-666 and gzerad authored Sep 20, 2024
1 parent 461d92e commit 3d12e7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/publishEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const amplitudeIdentify = (userId, properties = {}) => {
amplitude.identify(identifyEvent);
};

const analyticsIdentify = (id, options) => {
const analyticsIdentify = (id, options = {}) => {
const user = currentUser();
if (!user || (user && !user.is_admin)) {
const finalOptions = {
Expand Down
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Application = ({ Component, pageProps }) => {
}
});
if (!!userDetails && Object.keys(userDetails).length !== 0 && count === 0) {
AppAnalytics.identify(userDetails.customer_id);
AppAnalytics.identify(userDetails.customer_id, { ...userDetails });
setCount(count + 1);
}
}, [userDetails]);
Expand Down

0 comments on commit 3d12e7d

Please sign in to comment.