Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit baa4694

Browse files
Fix posthog reset(); update posthog
1 parent 7312329 commit baa4694

File tree

5 files changed

+20
-47
lines changed

5 files changed

+20
-47
lines changed

ui-dashboard/package-lock.json

Lines changed: 9 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui-dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"date-fns-tz": "^2.0.0",
3838
"json5": "^2.2.3",
3939
"lodash-es": "4.17.21",
40-
"posthog-js": "1.57.2",
40+
"posthog-js": "1.81.1",
4141
"react": "18.2.0",
4242
"react-dom": "18.2.0",
4343
"react-router-dom": "6.4.4",

ui-dashboard/src/app.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ const App: React.FC = () => {
109109
await authProvider.getCookie();
110110
} catch (e) {
111111
if (e instanceof AxiosError && e.response?.status === 401) {
112-
if (isPosthogActive) {
113-
posthog?.reset(true);
114-
}
115-
116112
navigate("/login", {
117113
state: {
118114
isNeedLogout: true
@@ -128,10 +124,6 @@ const App: React.FC = () => {
128124
setUser(user);
129125
} catch (e) {
130126
if (e instanceof AxiosError && e.response?.status === 401) {
131-
if (isPosthogActive) {
132-
posthog?.reset(true);
133-
}
134-
135127
navigate("/login", {
136128
state: {
137129
isNeedLogout: true
@@ -180,7 +172,6 @@ const App: React.FC = () => {
180172

181173
React.useEffect(() => {
182174
if (user && isPosthogActive) {
183-
posthog?.reset(true);
184175
posthog?.identify(user.email, {
185176
email: user.email,
186177
uuid: user.uuid

ui-payment/package-lock.json

Lines changed: 9 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui-payment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@vitejs/plugin-basic-ssl": "^1.0.1",
2828
"axios": "^1.1.3",
2929
"formik": "^2.2.9",
30-
"posthog-js": "^1.57.2",
30+
"posthog-js": "1.81.1",
3131
"qrcode.react": "^3.1.0",
3232
"react": "^18.2.0",
3333
"react-dom": "^18.2.0",

0 commit comments

Comments
 (0)