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;