Skip to content

Commit

Permalink
fix(status): use cached data for error messages so they actually show
Browse files Browse the repository at this point in the history
  • Loading branch information
z0w13 committed Sep 29, 2024
1 parent a4eef87 commit 0a4c80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/StatusUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function useStatusUpdater() {

return $q.notify({
type: 'negative',
message: `Error updating fronters for '${(await systemCache.get(system))?.name || system}'`,
message: `Error updating fronters for '${systemCache.getCached(system)?.name || system}'`,
caption: `${e.status}: ${e.message} (${e.code})`,
});
}
Expand Down Expand Up @@ -97,7 +97,7 @@ export default function useStatusUpdater() {

return $q.notify({
type: 'negative',
message: `Error updating fronters for '${(await systemCache.get(fronters.system))?.name || fronters.system}'`,
message: `Error updating fronters for '${systemCache.getCached(fronters.system)?.name || fronters.system}'`,
caption: `${e.status}: ${e.message} (${e.code})`,
});
}
Expand Down

0 comments on commit 0a4c80a

Please sign in to comment.