From 122f57e027579dd9a12ac3c6d8b448138dbccb52 Mon Sep 17 00:00:00 2001 From: pret3nti0u5 Date: Mon, 4 Apr 2022 18:37:09 +0530 Subject: [PATCH] fix(unexpected-token): Changed name of key from res.default_group to res.name --- src/services/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/users.js b/src/services/users.js index 7d71b1307..57dbd92c2 100644 --- a/src/services/users.js +++ b/src/services/users.js @@ -23,7 +23,7 @@ import { setLocalStorage } from "shared/storageHelper"; export const getUserSelf = () => { return getUserSelfApi().then((res) => { setLocalStorage("user", res); - setLocalStorage("currentGroup", res.default_group); + setLocalStorage("currentGroup", res.name); return res; }); };