Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Nov 7, 2024
2 parents f846e69 + ebce976 commit 3b93d85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 10 additions & 1 deletion components/ui/ChooseWalletOverlay.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<OverlayDialog :show="show" :close="close" title="Access Your Wallet!">
<OverlayDialog :show="show" :close="closeProxy" title="Access Your Wallet!">
<div class="mt-2">
<div v-if="hasCreateTestingAccountFn" class="mt-4">
<p class="text-sm text-gray-400">How would you like to connect?</p>
Expand Down Expand Up @@ -129,6 +129,15 @@ const hasCreateTestingAccountFn = computed(
() => typeof props.createTestingAccount === "function",
);
// even if the same account stays selected and the overlay is manually closed
// we need to call onExtensionAccountChange. otherwise the balance poll will wait forever
const closeProxy = () => {
if (selectedExtensionAccount.value) {
props.onExtensionAccountChange(selectedExtensionAccount.value);
}
props.close();
};
watch(selectedExtensionAccount, async (selectedAddress) => {
if (selectedAddress) {
props.onExtensionAccountChange(selectedAddress);
Expand Down
6 changes: 3 additions & 3 deletions store/systemHealth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ export const useSystemHealth = defineStore("system-health", {
shieldingTargetLastBlockNumber?.value -
shieldingTargetImportedBlockNumber?.value;
let importHealth;
if (lag < 5) {
if (lag <= 6) {
importHealth = Health.Healthy;
} else if (lag < 10) {
} else if (lag < 12) {
importHealth = Health.Warning;
} else if (lag >= 10) {
} else if (lag >= 12) {
importHealth = Health.Critical;
} else {
importHealth = Health.Unknown;
Expand Down

0 comments on commit 3b93d85

Please sign in to comment.