diff --git a/userfront/lib/core/services/auth_proxy_service.dart b/userfront/lib/core/services/auth_proxy_service.dart index 89a9ce41..252fdf32 100644 --- a/userfront/lib/core/services/auth_proxy_service.dart +++ b/userfront/lib/core/services/auth_proxy_service.dart @@ -1072,7 +1072,8 @@ class AuthProxyService { } } catch (e) { // Fallback if the body isn't valid JSON (e.g., an HTML error page) - errorMessage = 'Server error (${response.statusCode}): ${response.body.isNotEmpty ? response.body.substring(0, response.body.length > 100 ? 100 : response.body.length) : "Unknown error"}'; + errorMessage = + 'Server error (${response.statusCode}): ${response.body.isNotEmpty ? response.body.substring(0, response.body.length > 100 ? 100 : response.body.length) : "Unknown error"}'; } throw Exception(errorMessage); } diff --git a/userfront/lib/features/auth/presentation/signup_screen.dart b/userfront/lib/features/auth/presentation/signup_screen.dart index 8e6e5058..af3c9813 100644 --- a/userfront/lib/features/auth/presentation/signup_screen.dart +++ b/userfront/lib/features/auth/presentation/signup_screen.dart @@ -237,7 +237,7 @@ class _SignupScreenState extends State { _isAffiliateLocked = true; } }); - + // Only fetch tenants if it's an affiliate domain if (res['isAffiliate'] == true) { _fetchTenants(); @@ -1469,19 +1469,15 @@ class _SignupScreenState extends State { items: [ DropdownMenuItem( value: 'GENERAL', - child: Text( - tr('domain.affiliation.general'), - ), + child: Text(tr('domain.affiliation.general')), ), DropdownMenuItem( value: 'AFFILIATE', - child: Text( - tr('domain.affiliation.affiliate'), - ), + child: Text(tr('domain.affiliation.affiliate')), ), ], - onChanged: _isAffiliateLocked - ? null + onChanged: _isAffiliateLocked + ? null : (val) { if (val == null) { return; @@ -1517,9 +1513,8 @@ class _SignupScreenState extends State { child: Text(t['name'] ?? t['slug']), ); }).toList(), - onChanged: (val) => setState( - () => _companyCode = val, - ), + onChanged: (val) => + setState(() => _companyCode = val), ), ], ],