Browse Source

fix linting

master
Trent Larson 3 weeks ago
parent
commit
0e52f4806f
  1. 11
      src/views/AccountViewView.vue

11
src/views/AccountViewView.vue

@ -264,9 +264,7 @@
</div> </div>
<!-- User Profile --> <!-- User Profile -->
<div <div class="bg-slate-100 rounded-md overflow-hidden px-4 py-4 mt-8 mb-8">
class="bg-slate-100 rounded-md overflow-hidden px-4 py-4 mt-8 mb-8"
>
<div v-if="loadingProfile" class="text-center mb-2"> <div v-if="loadingProfile" class="text-center mb-2">
<fa icon="spinner" class="fa-spin text-slate-400"></fa> Loading <fa icon="spinner" class="fa-spin text-slate-400"></fa> Loading
profile... profile...
@ -1582,15 +1580,12 @@ export default class AccountViewView extends Vue {
"Got 400 or 404 response retrieving limits which probably means they're not registered:", "Got 400 or 404 response retrieving limits which probably means they're not registered:",
error, error,
); );
this.limitsMessage = "No limits found, so no actions are allowed."; this.limitsMessage = "No limits were found, so no actions are allowed.";
} else { } else {
const data = error.response?.data as ErrorResponse; const data = error.response?.data as ErrorResponse;
this.limitsMessage = this.limitsMessage =
(data?.error?.message as string) || "Bad server response."; (data?.error?.message as string) || "Bad server response.";
console.log( console.error("Got bad response retrieving limits:", error);
"Got bad response retrieving limits:",
error,
);
} }
} else { } else {
this.limitsMessage = "Got an error retrieving limits."; this.limitsMessage = "Got an error retrieving limits.";

Loading…
Cancel
Save