Merge branch 'max_dev' of Software_Engineering_I/greenvironment-frontend into master

master
Trivernis 5 years ago committed by Gitea
commit 0f17203ae6

@ -64,7 +64,7 @@ export class RegisterService {
friendRequest.senderHandle = request.sender.handle;
user.receivedRequests.push(friendRequest);
}
if (JSON.parse(response.data.login.settings).darkmode === 'true') {
if (JSON.parse(response.data.register.settings).darkmode === 'true') {
user.darkmode = true;
}
this.data.changeUserInfo(user);

@ -69,7 +69,7 @@ export class SelfService {
friendRequest.senderHandle = request.sender.handle;
user.receivedRequests.push(friendRequest);
}
if (JSON.parse(response.data.login.settings).darkmode === 'true') {
if (JSON.parse(response.data.getSelf.settings).darkmode === 'true') {
user.darkmode = true;
}
this.data.changeUserInfo(user);

Loading…
Cancel
Save