From 4e9ab6964b5a4c8be0d2cf1d8fd42480593d3458 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 29 Dec 2019 23:42:27 +0100 Subject: [PATCH] fixed some buggedy bug --- src/app/services/register/register.service.ts | 2 +- src/app/services/selfservice/self.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/register/register.service.ts b/src/app/services/register/register.service.ts index 54f676f..8d08ec9 100644 --- a/src/app/services/register/register.service.ts +++ b/src/app/services/register/register.service.ts @@ -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); diff --git a/src/app/services/selfservice/self.service.ts b/src/app/services/selfservice/self.service.ts index 5f475ea..e361551 100644 --- a/src/app/services/selfservice/self.service.ts +++ b/src/app/services/selfservice/self.service.ts @@ -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);