Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Tguntenaar committed Nov 13, 2024
1 parent c6fde60 commit 97d10d5
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions instances/devhub.near/widget/devhub/entity/proposal/Feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ const getRfp = (rfp_id) => {
};

const FeedPage = () => {

State.init({
data: [],
author: "",
Expand Down Expand Up @@ -316,15 +315,12 @@ const FeedPage = () => {
}
}
console.log("Fetching.. ", fetchUrl);
return asyncFetch(
fetchUrl,
{
method: "GET",
headers: {
accept: "application/json",
},
}
).catch((error) => {
return asyncFetch(fetchUrl, {
method: "GET",
headers: {
accept: "application/json",
},
}).catch((error) => {
console.log("Error fetching cache api", error);
});
}
Expand Down Expand Up @@ -354,11 +350,10 @@ const FeedPage = () => {
if (isNumber(item.linked_rfp)) {
// TODO fetch individual rfp's -> name & rfp_id
getRfp(item.linked_rfp).then((result) => {

console.log({ result })
console.log({ result });
const rfpData = result.body.data;
return { ...item, rfpData: rfpData[0] };
})
});
} else {
return Promise.resolve(item);
}
Expand Down

0 comments on commit 97d10d5

Please sign in to comment.