Skip to content

Commit

Permalink
Do not display subtitle if it's the same with title on payment detail…
Browse files Browse the repository at this point in the history
…s dialog
  • Loading branch information
erdemyerebasmaz committed Jul 25, 2024
1 parent a8e3f79 commit 2cc8aa0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ class PaymentDetailsDialogDescription extends StatelessWidget {
Widget build(BuildContext context) {
final themeData = Theme.of(context);

final description = paymentMinutiae.description;
if (description.isEmpty) {
final title = paymentMinutiae.title.replaceAll("\n", " ");
final description = paymentMinutiae.description.trim();
if (description.isEmpty || title == description) {
return Container();
}

Expand Down

0 comments on commit 2cc8aa0

Please sign in to comment.