From e81562e315bda64ead4369494b4e0530a528ee05 Mon Sep 17 00:00:00 2001 From: dab246 Date: Tue, 7 Jun 2022 18:14:26 +0700 Subject: [PATCH] TF-624 Remove context not use --- lib/features/login/presentation/login_controller.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/features/login/presentation/login_controller.dart b/lib/features/login/presentation/login_controller.dart index d61b38da3..5de171c0d 100644 --- a/lib/features/login/presentation/login_controller.dart +++ b/lib/features/login/presentation/login_controller.dart @@ -171,12 +171,10 @@ class LoginController extends GetxController { void _getOIDCConfigurationSuccess(GetOIDCConfigurationSuccess success) { loginState.value = LoginState(Right(success)); - if (currentContext != null) { - _getTokenOIDCAction(currentContext!, success.oidcConfiguration); - } + _getTokenOIDCAction(success.oidcConfiguration); } - void _getTokenOIDCAction(BuildContext context, OIDCConfiguration config) async { + void _getTokenOIDCAction(OIDCConfiguration config) async { loginState.value = LoginState(Right(LoginLoadingAction())); final baseUri = kIsWeb ? _parseUri(AppConfig.baseUrl) : _parseUri(_urlText); if (baseUri != null) {