From 981972d6bdaa382cf16af752441525308237b225 Mon Sep 17 00:00:00 2001 From: Daniel McCartney Date: Fri, 9 Jun 2023 02:01:57 -0700 Subject: [PATCH] fix: prevent manifest not found errors in safe --- web/public/index.html | 1 + web/src/components/SafeSweepCard.js | 6 ++---- web/src/utils.js | 6 ++++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/web/public/index.html b/web/public/index.html index 254731c..c7d85f6 100644 --- a/web/public/index.html +++ b/web/public/index.html @@ -6,6 +6,7 @@ + Rocket Sweep - Distributing operator rewards for Rocket Pool diff --git a/web/src/components/SafeSweepCard.js b/web/src/components/SafeSweepCard.js index 37b51c5..3595f5c 100644 --- a/web/src/components/SafeSweepCard.js +++ b/web/src/components/SafeSweepCard.js @@ -26,7 +26,7 @@ import { import _ from "lodash"; import { useState } from "react"; import { ethers } from "ethers"; -import { useAccount, useEnsName } from "wagmi"; +import { useAccount } from "wagmi"; import SafeAppsSDK from "@safe-global/safe-apps-sdk"; import { BNSortComparator, @@ -222,8 +222,6 @@ function useSortedMinipoolDetails(nodeAddress) { } function SafeAlert({ sx, label, nodeAddress, safeAddress }) { - let { data: name } = useEnsName({ address: nodeAddress }); - let nodeAddressOrName = name || nodeAddress; let { connector } = useAccount(); if (connector?.id === "safe") { // No alert when it is already open as a Safe app. @@ -232,7 +230,7 @@ function SafeAlert({ sx, label, nodeAddress, safeAddress }) { return (