From 6e895532c547afcee336a78808d6c63fedbd017a Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Mon, 8 Feb 2016 02:46:50 +0100 Subject: [PATCH] Fix uncaught type error for mobile avatar upload --- app/views/photos/_new_profile_photo.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/photos/_new_profile_photo.haml b/app/views/photos/_new_profile_photo.haml index 70b0d4c37..77808b588 100644 --- a/app/views/photos/_new_profile_photo.haml +++ b/app/views/photos/_new_profile_photo.haml @@ -38,7 +38,7 @@ /* flash message prompt */ var message = Diaspora.I18n.t("photo_uploader.looking_good"); - app.flashMessages.success(message); + if(app.flashMessages) { app.flashMessages.success(message); } var id = responseJSON.data.photo.id; var url = responseJSON.data.photo.unprocessed_image.url;