Skip to content

Commit

Permalink
Fixing account not found when REX info are not available
Browse files Browse the repository at this point in the history
  • Loading branch information
jaegerfe committed Sep 25, 2023
1 parent 89a3f99 commit bcbcb7f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/AccountCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,13 @@ export default defineComponent({
};
const loadBalances = async () => {
const total = await getRexBalance();
rexDeposits.value = await getRexFund();
rexStaked.value = total;
try {
const total = await getRexBalance();
rexDeposits.value = await getRexFund();
rexStaked.value = total;
} catch (e) {
$q.notify('REX information not available!');
}
};
const loadResources = () => {
Expand Down

0 comments on commit bcbcb7f

Please sign in to comment.