Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed Nov 10, 2023
1 parent 07b2f42 commit f7ddf62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
18 changes: 4 additions & 14 deletions apps/potlock/widget/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,6 @@ State.init({
cart: null,
// previousCart: null,
nearToUsd: null,
// nearToUsd: useCache(
// () =>
// asyncFetch("https://api.coingecko.com/api/v3/simple/price?ids=near&vs_currencies=usd").then(
// (res) => {
// console.log("congecko res: ", res);
// return res.body.near.usd;
// }
// ),
// "nearToUsd",
// { subscribe: false }
// ),
isCartModalOpen: false,
isNavMenuOpen: false,
registryAdmins: null,
Expand All @@ -69,13 +58,14 @@ State.init({
if (!state.nearToUsd) {
asyncFetch("https://api.coingecko.com/api/v3/simple/price?ids=near&vs_currencies=usd").then(
(res) => {
console.log("congecko res: ", res);
State.update({ nearToUsd: res.body.near.usd });
if (res.ok) {
State.update({ nearToUsd: res.body.near.usd });
}
}
);
}

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
18 changes: 4 additions & 14 deletions build/potlock/src/Index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,6 @@ State.init({
cart: null,
// previousCart: null,
nearToUsd: null,
// nearToUsd: useCache(
// () =>
// asyncFetch("https://api.coingecko.com/api/v3/simple/price?ids=near&vs_currencies=usd").then(
// (res) => {
// console.log("congecko res: ", res);
// return res.body.near.usd;
// }
// ),
// "nearToUsd",
// { subscribe: false }
// ),
isCartModalOpen: false,
isNavMenuOpen: false,
registryAdmins: null,
Expand All @@ -69,13 +58,14 @@ State.init({
if (!state.nearToUsd) {
asyncFetch("https://api.coingecko.com/api/v3/simple/price?ids=near&vs_currencies=usd").then(
(res) => {
console.log("congecko res: ", res);
State.update({ nearToUsd: res.body.near.usd });
if (res.ok) {
State.update({ nearToUsd: res.body.near.usd });
}
}
);
}

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 f7ddf62

Please sign in to comment.