Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into bugfix/5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber committed Dec 10, 2024
2 parents 860f9f4 + 4e6cbe2 commit a188aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/homeComponent/view/contactCard/contact_card_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class _ContactCardViewState extends ConsumerState<ContactCardView> {
stream: ref.watch(studentCardViewModel).studentCard,
builder: (context, snapshot) {
if (snapshot.hasData || snapshot.hasError) {
return image(snapshot.data?.first.image);
return image(snapshot.data?.firstOrNull?.image);
} else {
return SizedBox(height: contactImageSize, width: contactImageSize);
}
Expand Down

0 comments on commit a188aaf

Please sign in to comment.