diff options
| author | crupest <crupest@outlook.com> | 2020-08-07 00:01:45 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2020-08-07 00:01:45 +0800 |
| commit | a656f37811661db502606b674f91ef1a7005d108 (patch) | |
| tree | 231f52d757a68a62f6696be91ebb4c5ee6f3a23f /Timeline/ClientApp/src/app/user | |
| parent | 190412d09e6a2fc6823b76ddd9805bf58d845866 (diff) | |
| download | timeline-a656f37811661db502606b674f91ef1a7005d108.tar.gz timeline-a656f37811661db502606b674f91ef1a7005d108.tar.bz2 timeline-a656f37811661db502606b674f91ef1a7005d108.zip | |
Use cache login user if offline.
Diffstat (limited to 'Timeline/ClientApp/src/app/user')
| -rw-r--r-- | Timeline/ClientApp/src/app/user/Login.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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 {
|
