Skip to content

Commit

Permalink
fix(#58): corrige erro encontrado com o teste
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielCostaDeOliveira committed Dec 23, 2024
1 parent 13ac32f commit c99ebbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ui/login/view/login_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ class _LoginScreenState extends State<LoginScreen> {
Widget _authDevice(LoginViewModel viewModel) {
Log.d("Mostrando tela de autorização do dispositivo");

viewModel.loginWithDeviceAuth().then((_) => viewModel.goToHome());
viewModel.loginWithDeviceAuth().then((ok) {
if (ok) {
viewModel.goToHome();
}
});

return Column(
mainAxisAlignment: MainAxisAlignment.center,
Expand Down

0 comments on commit c99ebbb

Please sign in to comment.