From 718dcfacb34632eac98b0dc1b73c105312c14d2c Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Wed, 5 Oct 2022 16:57:15 +0200 Subject: [PATCH] Fix check to allow users to register directly over the app... --- lib/screens/auth_screen.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/screens/auth_screen.dart b/lib/screens/auth_screen.dart index d3d77cae..79b8e561 100644 --- a/lib/screens/auth_screen.dart +++ b/lib/screens/auth_screen.dart @@ -119,7 +119,7 @@ class _AuthCardState extends State { // If not, the user will not be able to register via the app try { final metadata = Provider.of(context, listen: false).metadata; - if (metadata.containsKey(MANIFEST_KEY_API) || metadata[MANIFEST_KEY_API] == '') { + if (metadata.containsKey(MANIFEST_KEY_API) && metadata[MANIFEST_KEY_API] == '') { _canRegister = false; } } on PlatformException {