chrore: format: paket.login
This commit is contained in:
parent
bfad2ee61b
commit
274f404ca0
1 changed files with 6 additions and 9 deletions
|
@ -191,15 +191,12 @@ impl AsyncComponent for Login {
|
||||||
return value;
|
return value;
|
||||||
});
|
});
|
||||||
if let Ok(value) = refresh_token {
|
if let Ok(value) = refresh_token {
|
||||||
match value {
|
model.refresh_token = value;
|
||||||
Some(value) => {
|
if model.refresh_token.is_some() {
|
||||||
model.refresh_token = Some(RefreshToken::new(value).unwrap());
|
sender.input(LoginInput::NeedsRefresh);
|
||||||
sender.input(LoginInput::NeedsRefresh);
|
} else {
|
||||||
}
|
sender.input(LoginInput::NeedsLogin);
|
||||||
None => {
|
}
|
||||||
sender.input(LoginInput::NeedsLogin);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue