1
0
forked from baron/baron-sso

일반 사용자 가입 시 External 하드코딩 제거 및 소속 표시 개선

This commit is contained in:
2026-03-24 13:24:57 +09:00
parent 5bb10ba1e6
commit 650c65c888
2 changed files with 2 additions and 4 deletions

View File

@@ -316,9 +316,7 @@ class _SignupScreenState extends State<SignupScreen> {
phone: _phoneController.text.trim(),
affiliationType: _affiliationType,
companyCode: _affiliationType == 'AFFILIATE' ? _companyCode : null,
department: _deptController.text.trim().isEmpty
? (_affiliationType == 'GENERAL' ? 'External' : '')
: _deptController.text.trim(),
department: _deptController.text.trim(),
termsAccepted: true,
);
if (mounted) _showSuccessDialog();

View File

@@ -687,7 +687,7 @@ class _DashboardScreenState extends ConsumerState<DashboardScreen> {
profile?.email ??
profile?.phone ??
tr('ui.userfront.profile.user_fallback', fallback: 'User');
final departmentValue = profile?.department ?? '';
final departmentValue = profile?.tenant?.name ?? profile?.department ?? '';
final department = departmentValue.isNotEmpty
? departmentValue
: tr('ui.userfront.profile.department_empty');