From a656f37811661db502606b674f91ef1a7005d108 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Fri, 7 Aug 2020 00:01:45 +0800
Subject: Use cache login user if offline.

---
 Timeline/ClientApp/src/app/user/Login.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'Timeline/ClientApp/src/app/user/Login.tsx')

diff --git a/Timeline/ClientApp/src/app/user/Login.tsx b/Timeline/ClientApp/src/app/user/Login.tsx
index a615d8ed..2f2a3188 100644
--- a/Timeline/ClientApp/src/app/user/Login.tsx
+++ b/Timeline/ClientApp/src/app/user/Login.tsx
@@ -62,8 +62,8 @@ const Login: React.FC = (_) => {
         },
         rememberMe
       )
-      .subscribe(
-        (_) => {
+      .then(
+        () => {
           if (history.length === 0) {
             history.push('/');
           } else {
-- 
cgit v1.2.3

