Skip to content

Commit

Permalink
Update tooltip logic since caching merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jferas committed Jul 18, 2024
1 parent ff71f90 commit 8bf0bb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions frontend/src/pages/AccountReceive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ function useScan() {
: null
);
const userAnnouncements = ref<UserAnnouncement[]>([]);
const mostRecentAnnouncementTimestamp = ref<number>();
const mostRecentAnnouncementBlockNumber = ref<number>();
const mostRecentAnnouncementTimestamp = ref<number>(0);
const mostRecentAnnouncementBlockNumber = ref<number>(0);
const mostRecentBlockTimestamp = ref<number>(0);
const mostRecentBlockNumber = ref<number>(0);
Expand Down Expand Up @@ -391,7 +391,7 @@ function useScan() {
return provider.getBlock('latest');
}
function(announcementsBatch: AnnouncementDetail[]) {
function updateMostRecentAnnouncementInfo(announcementsBatch: AnnouncementDetail[]) {
announcementsBatch.forEach((announcement) => {
const thisTimestamp = parseInt(announcement.timestamp);
if (thisTimestamp > mostRecentAnnouncementTimestamp.value) {
Expand Down
6 changes: 0 additions & 6 deletions umbra-js/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,6 @@ async function* fetchAllStealthKeyChangedEventsForRecipientAddressFromSubgraph(
)) {
yield stealthKeyChangedEvents;
}

if (!theEvent) {
console.log(`Searched the subgraph, but found no StealthKeyChangedEvents for address ${address}`);
throw new Error('No stealthKeyChangedEvents found matching address in subgraph');
}
return theEvent;
}

/**
Expand Down

0 comments on commit 8bf0bb9

Please sign in to comment.