diff --git a/package.json b/package.json index 4a3aebb84..ab5844ecc 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 2cc909837..a51ca89e8 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;