diff --git a/assets/javascripts/discourse/templates/components/profile-summary-votes.hbs b/assets/javascripts/discourse/templates/components/profile-summary-votes.hbs index ce0ee94..ba037b0 100644 --- a/assets/javascripts/discourse/templates/components/profile-summary-votes.hbs +++ b/assets/javascripts/discourse/templates/components/profile-summary-votes.hbs @@ -31,9 +31,7 @@ {{/each}} {{else}} {{#unless fetched}} -
- Loading voting history -
+ {{karma-loading}} {{else}}
No voting history found diff --git a/assets/javascripts/lib/stats/index.js b/assets/javascripts/lib/stats/index.js index dd4a542..0bfb27a 100644 --- a/assets/javascripts/lib/stats/index.js +++ b/assets/javascripts/lib/stats/index.js @@ -129,10 +129,11 @@ const KarmaStats = { const { SiteSettings } = ctx; const daoName = this.daoName = window.selectedDao; - const { User_not_found_message: errMessage, rawErrorStr } = + const { User_not_found_message: errMessage, rawErrorStr: originalErrorMessage } = SiteSettings; - + let rawErrorStr = originalErrorMessage; if (!rawErrorStr && errMessage) { + rawErrorStr = errMessage; set( ctx.SiteSettings, "rawErrorStr",