qpp-style 9.11.2 → 9.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
- package/session/logout.js +5 -1
package/package.json
CHANGED
package/session/logout.js
CHANGED
|
@@ -2,7 +2,11 @@ import cookie from 'cookie';
|
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
|
|
4
4
|
export const deleteImpersonatedUser = (cookies) => {
|
|
5
|
-
|
|
5
|
+
const userHasApmPayments = localStorage.getItem('user_has_apm_payments');
|
|
6
|
+
if (
|
|
7
|
+
cookies.hasOwnProperty('qpp_impersonated_user', 'user_has_apm_payments')
|
|
8
|
+
) {
|
|
9
|
+
document.cookie = `user_has_apm_payments=${userHasApmPayments}; Path=/;`;
|
|
6
10
|
document.cookie =
|
|
7
11
|
'qpp_impersonated_user=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
|
8
12
|
}
|