diff --git a/app/views/photos/_new_profile_photo.haml b/app/views/photos/_new_profile_photo.haml index 4846b8da8..840f3f1c3 100644 --- a/app/views/photos/_new_profile_photo.haml +++ b/app/views/photos/_new_profile_photo.haml @@ -53,9 +53,9 @@ $('#fileInfo').text(fileName + ' completed').fadeOut(2000); $('#file-upload').removeClass("loading"); var id = responseJSON.data.photo.id; - var url = responseJSON.data.photo.url; + var url = responseJSON.data.photo.unprocessed_image.url; var oldPhoto = $('#photo_id'); - + console.log(responseJSON); if(oldPhoto.length == 0) { $('#update_profile_form').prepend(""); }else{