chrore: format: paket.login

This commit is contained in:
jane400 2024-10-02 17:44:01 +02:00 committed by jane400
parent bfad2ee61b
commit 274f404ca0

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);
}
};
}
}