1
0
forked from baron/baron-sso

refactoring

This commit is contained in:
2026-05-14 08:11:02 +09:00
parent e36a973053
commit f6f8e88342
17 changed files with 217 additions and 214 deletions

View File

@@ -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;
}

View File

@@ -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,
),
],
],