From 221fcd4d318958bf6d212c20670d3d0eaeaaa325 Mon Sep 17 00:00:00 2001 From: Lucas Delanier Date: Tue, 28 Feb 2023 23:49:07 +0100 Subject: [PATCH] fix profile picture :ambulance: --- model/review.tsx | 2 ++ screens/InfoScreen.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/model/review.tsx b/model/review.tsx index 1aaaf79..fd86214 100644 --- a/model/review.tsx +++ b/model/review.tsx @@ -12,6 +12,8 @@ class Review { this.message = message; if (profile_path == null) { this.profile_path = "https://thumbs.dreamstime.com/b/profil-vectoriel-avatar-par-d%C3%A9faut-utilisateur-179376714.jpg"; + } else if (profile_path.slice(0, 6) === "/https") { + this.profile_path = profile_path.slice(1, 100); } else { this.profile_path = 'https://image.tmdb.org/t/p/w185' + profile_path; } diff --git a/screens/InfoScreen.tsx b/screens/InfoScreen.tsx index adc4c2f..b89fdc3 100644 --- a/screens/InfoScreen.tsx +++ b/screens/InfoScreen.tsx @@ -421,7 +421,7 @@ export default function InfoScreen({navigation, route}: RootStackScreenProps<'In navigation.goBack()} style={{zIndex: 100}}> - {item.original_title}