Skip to content

Commit

Permalink
Fix Error for Contact Card Image
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber committed Nov 23, 2024
1 parent 015d719 commit 95dbc1e
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 @@ -113,7 +113,7 @@ class _ContactCardViewState extends ConsumerState<ContactCardView> {
}

ImageProvider<Object> imageData(AsyncSnapshot<List<StudentCard>?> snapshot) {
if (snapshot.hasData) {
if (snapshot.hasData && snapshot.data!.isNotEmpty) {
return Image.memory(
base64DecodeImageData(snapshot.data!.first.image),
).image;
Expand Down

0 comments on commit 95dbc1e

Please sign in to comment.