fixed some buggedy bug

master
Max 5 years ago
parent 0a87c3431f
commit 4e9ab6964b

@ -64,7 +64,7 @@ export class RegisterService {
friendRequest.senderHandle = request.sender.handle; friendRequest.senderHandle = request.sender.handle;
user.receivedRequests.push(friendRequest); 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; user.darkmode = true;
} }
this.data.changeUserInfo(user); this.data.changeUserInfo(user);

@ -69,7 +69,7 @@ export class SelfService {
friendRequest.senderHandle = request.sender.handle; friendRequest.senderHandle = request.sender.handle;
user.receivedRequests.push(friendRequest); 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; user.darkmode = true;
} }
this.data.changeUserInfo(user); this.data.changeUserInfo(user);

Loading…
Cancel
Save