Skip to content

Commit

Permalink
fix: error message url and loading
Browse files Browse the repository at this point in the history
  • Loading branch information
andremury committed Dec 19, 2023
1 parent 9627a78 commit fadd345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
{{/each}}
{{else}}
{{#unless fetched}}
<div class="loading">
Loading voting history
</div>
{{karma-loading}}
{{else}}
<div class="loading">
No voting history found
Expand Down
5 changes: 3 additions & 2 deletions assets/javascripts/lib/stats/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fadd345

Please sign in to comment.