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: on logout clear captcha data

kruzhambusff410753191c
diff --git a/src/redux/sagas/actions/index.ts b/src/redux/sagas/actions/index.ts
index 1280ed09d..6e8c8a995 100644
--- a/src/redux/sagas/actions/index.ts
+++ b/src/redux/sagas/actions/index.ts
@@ -4,7 +4,7 @@ import { getRefreshToken, removeRefreshToken } from 'utils/refreshToken'
import { logoutApi } from 'api'
import { removeAccessToken } from 'utils/accessToken'
import { removeItem } from 'utils/localstorage'
-import { LS_VIEW_PREFS_SETTING } from 'redux/constants'
+import { LS_VIEW_PREFS_SETTING, LS_CAPTCHA_VIEW_PREFS_SETTING } from 'redux/constants'
import { IUser } from '../../models/IUser'
const loadProjects = (take?: number, skip?: number) => ({
@@ -114,6 +114,7 @@ const logout = (basedOn401Error: boolean) => {
removeAccessToken()
removeRefreshToken()
removeItem(LS_VIEW_PREFS_SETTING)
+ removeItem(LS_CAPTCHA_VIEW_PREFS_SETTING)
return {
type: types.LOGOUT,