Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: acc delte

kruzhambus8427f3204c55
diff --git a/src/redux/actions/auth/index.js b/src/redux/actions/auth/index.js
index 5fd522878..e19dc2e34 100644
--- a/src/redux/actions/auth/index.js
+++ b/src/redux/actions/auth/index.js
@@ -74,8 +74,6 @@ export const authActions = {
},
deleteAccountSuccess() {
- const refreshToken = getRefreshToken()
- logoutApi(refreshToken)
removeAccessToken()
removeRefreshToken()
removeItem('user_info')
@@ -125,6 +123,9 @@ export const authActions = {
},
deleteAccountAsync(errorCallback, successCallback, t) {
+ const refreshToken = getRefreshToken()
+ logoutApi(refreshToken)
+
return {
type: types.DELETE_ACCOUNT_ASYNC,
payload: {