From be0a7d7ecce693d2509814e1b2d824c49e1a45e3 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 12 Nov 2023 13:04:16 +0200 Subject: [PATCH] Hide email error if delivered --- lib/ui/invoice/edit/invoice_edit_contacts.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/invoice/edit/invoice_edit_contacts.dart b/lib/ui/invoice/edit/invoice_edit_contacts.dart index e8c392756e6..0b177d8bd31 100644 --- a/lib/ui/invoice/edit/invoice_edit_contacts.dart +++ b/lib/ui/invoice/edit/invoice_edit_contacts.dart @@ -276,7 +276,9 @@ class _VendorContactListTile extends StatelessWidget { style: Theme.of(context).textTheme.bodySmall, ), ), - if ((invitation?.emailError ?? '').isNotEmpty) + if ((invitation?.emailError ?? '').isNotEmpty && + invitation?.emailStatus != + InvitationEntity.EMAIL_STATUS_DELIVERED) Padding( padding: const EdgeInsets.only(top: 8), child: Text(