@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) {
|