Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Jan 8, 2024
1 parent 143126b commit bb79acc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/ObserverList/ObserverList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ObserverList = () => {
}, []);

const fetchObservers = async () => {
setIsLoadingObservers(true); // Start loading
setIsLoadingObservers(true);
try {
const response = await fetch(`${api}/zeta-chain/observer/nodeAccount`);
const data = await response.json();
Expand All @@ -27,12 +27,12 @@ const ObserverList = () => {
} catch (error) {
console.error("Error fetching observer validators:", error);
} finally {
setIsLoadingObservers(false); // End loading
setIsLoadingObservers(false);
}
};

const fetchValidators = async (key = "") => {
setIsLoadingValidators(true); // Start loading
setIsLoadingValidators(true);
try {
const endpoint = "/cosmos/staking/v1beta1/validators";
const query = key ? `pagination.key=${encodeURIComponent(key)}` : "";
Expand All @@ -51,7 +51,7 @@ const ObserverList = () => {
} catch (error) {
console.error("Error fetching validators:", error);
} finally {
setIsLoadingValidators(false); // End loading
setIsLoadingValidators(false);
}
};

Expand All @@ -64,7 +64,7 @@ const ObserverList = () => {
} catch (error) {
console.error("Error converting address:", error);
}
return address; // return the original address if conversion fails
return address;
};

const findMoniker = (valoperAddress: any) => {
Expand Down

0 comments on commit bb79acc

Please sign in to comment.