Skip to content

Commit

Permalink
chor: fix failing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Coder-Manan committed Aug 26, 2023
1 parent d0e1e9a commit 5627d7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/presentation/login/bloc/login_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LoginBloc extends Bloc<LoginEvent, LoginState> {
error: 'Password must be at least 8 characters long'));
}
// TODO: call api

// if failed
// emit(LoginError());
// else
Expand Down
10 changes: 5 additions & 5 deletions lib/presentation/login/components/oauth_webview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class OAuthWebScreen extends StatelessWidget {
static const id = 'oauth_view';
OAuthWebScreen({Key? key}) : super(key: key);
final ValueNotifier<int> _loadingState = ValueNotifier(1);

@override
Widget build(BuildContext context) {
return Scaffold(
Expand Down Expand Up @@ -47,10 +47,10 @@ class OAuthWebScreen extends StatelessWidget {
return NavigationActionPolicy.ALLOW;
}

var _params = url.split('?').last.split('&');
if (_params.first.contains('code')) {
var _code = _params.first.split('=').last;
BaseApp.router.pop(_code);
var params = url.split('?').last.split('&');
if (params.first.contains('code')) {
var code = params.first.split('=').last;
BaseApp.router.pop(code);
}

return NavigationActionPolicy.CANCEL;
Expand Down

0 comments on commit 5627d7c

Please sign in to comment.