flamerest 1.0.100 → 1.0.101
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/REST.js +2 -2
- package/package.json +1 -1
package/REST.js
CHANGED
|
@@ -538,8 +538,8 @@ class FLAMEREST {
|
|
|
538
538
|
let user_hash = localStorage.getItem('user_hash');
|
|
539
539
|
|
|
540
540
|
// Не трогаем хранилище при каждом запросе, только если нужно переустановить хеш [авторизация на др. устройстве]
|
|
541
|
-
if (resp?.User?.user_hash && resp.User.user_hash !== user_hash) {
|
|
542
|
-
localStorage.setItem('user_hash', resp.User.user_hash);
|
|
541
|
+
if (resp?.data?.User?.user_hash && resp.data.User.user_hash !== user_hash) {
|
|
542
|
+
localStorage.setItem('user_hash', resp.data.User.user_hash);
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
return resp.data;
|