From 110f2ab8d7bf5cf5fefee2fadb89f0e548dc0f4d Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 18 Mar 2019 21:21:56 +0800 Subject: Add logout. Fix a bug. The bug is it always goes to login page whether you have login or not before when user is presented in url. --- Timeline/ClientApp/src/app/user/user.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Timeline/ClientApp/src/app/user/user.service.ts') diff --git a/Timeline/ClientApp/src/app/user/user.service.ts b/Timeline/ClientApp/src/app/user/user.service.ts index e7d50dd2..6cae2d31 100644 --- a/Timeline/ClientApp/src/app/user/user.service.ts +++ b/Timeline/ClientApp/src/app/user/user.service.ts @@ -29,7 +29,7 @@ export class UserService { }); } - get currentUserInfo(): UserInfo | null { + get currentUserInfo(): UserInfo | null | undefined { return this.internalService.currentUserInfo; } -- cgit v1.2.3