forked from baron/baron-sso
refactoring
This commit is contained in:
@@ -125,11 +125,6 @@ class _ErrorScreenState extends State<ErrorScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
final companyCode = profile['companyCode']?.toString().trim() ?? '';
|
||||
if (companyCode.isNotEmpty) {
|
||||
return companyCode;
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -259,11 +254,6 @@ class _ErrorScreenState extends State<ErrorScreen> {
|
||||
appendLabel(tenant);
|
||||
}
|
||||
|
||||
final companyCode = profile['companyCode']?.toString().trim() ?? '';
|
||||
if (companyCode.isNotEmpty) {
|
||||
appendLabel(companyCode);
|
||||
}
|
||||
|
||||
return labels;
|
||||
}
|
||||
|
||||
|
||||
@@ -1178,11 +1178,11 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||
profile.tenant!.name,
|
||||
),
|
||||
],
|
||||
if (profile.companyCode.isNotEmpty) ...[
|
||||
if (profile.tenant?.slug.isNotEmpty ?? false) ...[
|
||||
const Divider(height: 24),
|
||||
_buildReadOnlyTile(
|
||||
tr('ui.userfront.profile.field.company_code'),
|
||||
profile.companyCode,
|
||||
tr('ui.userfront.profile.field.tenant_slug'),
|
||||
profile.tenant!.slug,
|
||||
),
|
||||
],
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user