From 1a39dde21e4a5a117bdf5d5e2af38f98b756e51d Mon Sep 17 00:00:00 2001 From: Akos Hermann Date: Tue, 27 Aug 2024 13:05:19 +0200 Subject: [PATCH] fix tests --- .../utils/common_widgets/web_view/web_content_interactor.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/flutter_parent/lib/utils/common_widgets/web_view/web_content_interactor.dart b/apps/flutter_parent/lib/utils/common_widgets/web_view/web_content_interactor.dart index 93aaec8122..58c39f237c 100644 --- a/apps/flutter_parent/lib/utils/common_widgets/web_view/web_content_interactor.dart +++ b/apps/flutter_parent/lib/utils/common_widgets/web_view/web_content_interactor.dart @@ -28,7 +28,8 @@ class WebContentInteractor { } Future getAuthUrl(String targetUrl) async { - if (targetUrl.contains(ApiPrefs.getDomain()!)) { + final domain = ApiPrefs.getDomain(); + if (domain != null && targetUrl.contains(domain)) { return _authUrl(targetUrl); } else { return targetUrl;