Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
strd0x committed Dec 21, 2023
1 parent dabed83 commit 65dc9f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/components/TwaAnalyticsProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@ const TwaAnalyticsProvider: FunctionComponent<TwaAnalyticsProviderProps> = ({

useEffect(() => {
const locationPath = location.pathname;
eventBuilder.track(`${EventType.PageView} ${locationPath}`, {
path: locationPath,
}, getCurrentUTCTimestamp());
eventBuilder.track(
`${EventType.PageView} ${locationPath}`,
{
path: locationPath,
},
getCurrentUTCTimestamp(),
);
}, []);

useEffect(() => {
Expand Down
6 changes: 3 additions & 3 deletions src/helpers/date.helper.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const getCurrentUTCTimestamp = (): string => {
return Math.floor(Date.now() / 1000).toString();
}
export const getCurrentUTCTimestamp = (): string => {
return Math.floor(Date.now() / 1000).toString();
};

0 comments on commit 65dc9f8

Please sign in to comment.