@ape.swap/bonds-sdk 1.0.155 → 1.0.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,16 +110,16 @@ var Bonds = function (_a) {
110
110
  };
111
111
  useEffect(function () {
112
112
  axios.get('https://realtime-api.ape.bond/bonds').then(function (response) {
113
- var bonds = response.data.bonds;
113
+ var bonds = response.data.bonds.filter(function (bond) { return !isSoldOut(bond); });
114
114
  setBondData(bonds);
115
115
  console.log("BONDS");
116
116
  console.log(bonds);
117
- var bondsToRender = bondData.filter(function (bond) { return !isSoldOut(bond); });
118
- console.log("BONDS TO RENDER");
119
- console.log(bondsToRender);
120
- setBondData(bondsToRender);
121
117
  });
122
118
  }, []);
119
+ // const bondsToRender = bondData.filter(bond => !isSoldOut(bond));
120
+ // console.log("BONDS TO RENDER");
121
+ // console.log(bondsToRender);
122
+ // setBondData(bondsToRender);
123
123
  useEffect(function () {
124
124
  axios.get('https://apeswap-strapi.herokuapp.com/hot-bonds').then(function (response) {
125
125
  var hotBondAddresses = response.data.map(function (bond) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "1.0.155",
6
+ "version": "1.0.156",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",