diff --git a/lib/features/digital_guide_view/general_info/presentation/digital_guide_view.dart b/lib/features/digital_guide_view/general_info/presentation/digital_guide_view.dart index eda567fc..bb1d3447 100644 --- a/lib/features/digital_guide_view/general_info/presentation/digital_guide_view.dart +++ b/lib/features/digital_guide_view/general_info/presentation/digital_guide_view.dart @@ -73,13 +73,14 @@ class _DigitalGuideView extends ConsumerWidget { .replaceAll("ulica", "ul."), icon: Assets.svg.contactIcons.compass, ), - ContactIconsModel( - text: digitalGuideResponseExtended.telephoneNumber, - icon: Assets.svg.contactIcons.phone, - // TODO(Bartosh): url not working, nothing happens - url: - "tel:+48${digitalGuideResponseExtended.telephoneNumber.replaceAll("

", "").replaceAll("

", "")}", - ), + if(digitalGuideResponseExtended.telephoneNumber.isNotEmpty) + ContactIconsModel( + text: digitalGuideResponseExtended.telephoneNumber, + icon: Assets.svg.contactIcons.phone, + // TODO(Bartosh): url not working, nothing happens + url: + "tel:+48${digitalGuideResponseExtended.telephoneNumber.replaceAll("

", "").replaceAll("

", "")}", + ), ContactIconsModel( text: context.localize .storeys(digitalGuideResponseExtended.numberOfStoreys), diff --git a/lib/features/digital_guide_view/general_info/presentation/widgets/headlines_section.dart b/lib/features/digital_guide_view/general_info/presentation/widgets/headlines_section.dart index 77452d0c..e72df34a 100644 --- a/lib/features/digital_guide_view/general_info/presentation/widgets/headlines_section.dart +++ b/lib/features/digital_guide_view/general_info/presentation/widgets/headlines_section.dart @@ -22,7 +22,7 @@ class HeadlinesSection extends StatelessWidget { name, style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 24), ), - Text(description), + if(description.isNotEmpty) Text(description), ], ), );