From 836416502dfa6c0936f89bd70136b5a46a9000e0 Mon Sep 17 00:00:00 2001 From: dlohvinov Date: Fri, 22 Mar 2024 03:49:33 +0200 Subject: [PATCH] 24.04.14: fixed logout [WTEL-4374] --- package.json | 2 +- src/modules/Userinfo/store/UserinfoStoreModule.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4a3aebb8..ab5844ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@webitel/ui-sdk", - "version": "24.4.13", + "version": "24.4.14", "private": false, "scripts": { "dev": "vite", diff --git a/src/modules/Userinfo/store/UserinfoStoreModule.js b/src/modules/Userinfo/store/UserinfoStoreModule.js index 2cc90983..a51ca89e 100644 --- a/src/modules/Userinfo/store/UserinfoStoreModule.js +++ b/src/modules/Userinfo/store/UserinfoStoreModule.js @@ -126,7 +126,7 @@ export default class UserinfoStoreModule extends BaseStoreModule { } }, - LOGOUT: async (context, { authUrl = import.meta.env.VITE_AUTH_URL }) => { + LOGOUT: async (context, { authUrl = import.meta.env.VITE_AUTH_URL } = {}) => { if (!authUrl) throw new Error('No authUrl for LOGOUT provided'); await userinfo.logout(); window.location.href = authUrl;