Skip to content

Commit

Permalink
add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed Nov 10, 2023
1 parent 84852ff commit f300055
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/potlock/widget/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ State.init({
() =>
asyncFetch("https://api.coingecko.com/api/v3/simple/price?ids=near&vs_currencies=usd").then(
(res) => {
// console.log("congecko res body: ", res.body);
console.log("congecko res: ", res);
return res.body.near.usd;
}
),
Expand All @@ -66,7 +66,7 @@ State.init({
registeredProjects: null,
});

// console.log("state in Index: ", state);
console.log("state in Index: ", state);

if (!state.registeredProjects) {
State.update({ registeredProjects: Near.view(registryContractId, "get_projects", {}) });
Expand Down
4 changes: 2 additions & 2 deletions build/potlock/src/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ State.init({
() =>
asyncFetch("https://api.coingecko.com/api/v3/simple/price?ids=near&vs_currencies=usd").then(
(res) => {
// console.log("congecko res body: ", res.body);
console.log("congecko res: ", res);
return res.body.near.usd;
}
),
Expand All @@ -66,7 +66,7 @@ State.init({
registeredProjects: null,
});

// console.log("state in Index: ", state);
console.log("state in Index: ", state);

if (!state.registeredProjects) {
State.update({ registeredProjects: Near.view(registryContractId, "get_projects", {}) });
Expand Down

0 comments on commit f300055

Please sign in to comment.