🐛 Fix unconfirmed indicator display logic

This commit is contained in:
LittleSheep 2025-03-15 23:17:03 +08:00
parent 71899dd4f2
commit 172d0d24fb

View File

@ -142,7 +142,7 @@ class _HomeDashUnconfirmedWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final ua = context.watch<UserProvider>();
if (ua.user != null && ua.user!.confirmedAt == null) {
if (ua.user == null || ua.user?.confirmedAt != null) {
return SizedBox.shrink();
}