chrore: format: paket.login

This commit is contained in:
jane400 2024-10-02 17:44:01 +02:00 committed by jane400
parent e994bec86f
commit c1e91ff1bb

View file

@ -191,15 +191,12 @@ impl AsyncComponent for Login {
return value;
});
if let Ok(value) = refresh_token {
match value {
Some(value) => {
model.refresh_token = Some(RefreshToken::new(value).unwrap());
model.refresh_token = value;
if model.refresh_token.is_some() {
sender.input(LoginInput::NeedsRefresh);
}
None => {
} else {
sender.input(LoginInput::NeedsLogin);
}
};
}
}