Skip to content

Commit

Permalink
fix: 4655 - crashed with null brand (#4659)
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki authored Sep 28, 2023
1 parent 53a75a3 commit 2b23dac
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ class _AddBasicDetailsPageState extends State<AddBasicDetailsPage> {
title: Text(appLocalizations.basic_details),
subTitle: widget.product.productName != null
? Text(
'${widget.product.productName!.trim()}, ${widget.product.brands!.trim()}',
'${widget.product.productName!.trim()}'
', ${widget.product.brands?.trim() ?? appLocalizations.unknownBrand}',
overflow: TextOverflow.ellipsis,
maxLines: 1)
maxLines: 1,
)
: null,
),
body: Form(
Expand Down

0 comments on commit 2b23dac

Please sign in to comment.