diff --git a/app/assets/v2/js/pages/profile-tribes.js b/app/assets/v2/js/pages/profile-tribes.js index 5748d37f8f0..ec3fd91439e 100644 --- a/app/assets/v2/js/pages/profile-tribes.js +++ b/app/assets/v2/js/pages/profile-tribes.js @@ -92,11 +92,14 @@ const loadDynamicScript = (callback, url, id) => { $.when(sendSave(url, data)).then(function(response) { _alert('Tribe has been updated'); - vm.tribe.tribes_cover_image = vm.headerFilePreview; - vm.$bvModal.hide('change-tribe-header'); + if (vm.headerFile) { + vm.tribe.tribes_cover_image = vm.headerFilePreview; + vm.$bvModal.hide('change-tribe-header'); + } }).fail(function(error) { - _alert('Error saving priorites. Try again later', 'error'); - console.error('error: unable to save priority', error); + + _alert('Error updating Tribe', 'error'); + console.error('error: unable to update tribe', error); }); }, suggestBounty: function() { diff --git a/app/dashboard/templates/profiles/tribes-vue.html b/app/dashboard/templates/profiles/tribes-vue.html index bb64cd5d6cf..24dfb054a58 100644 --- a/app/dashboard/templates/profiles/tribes-vue.html +++ b/app/dashboard/templates/profiles/tribes-vue.html @@ -41,9 +41,9 @@