@ape.swap/bonds-sdk 1.0.520 → 1.0.521
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.
|
@@ -115,7 +115,7 @@ var YourBonds = function (_a) {
|
|
|
115
115
|
case 0:
|
|
116
116
|
console.log("ACCOUNT");
|
|
117
117
|
console.log(account);
|
|
118
|
-
if (!account) return [3 /*break*/, 4];
|
|
118
|
+
if (!(account && bondData)) return [3 /*break*/, 4];
|
|
119
119
|
_a.label = 1;
|
|
120
120
|
case 1:
|
|
121
121
|
_a.trys.push([1, 3, , 4]);
|
|
@@ -138,7 +138,7 @@ var YourBonds = function (_a) {
|
|
|
138
138
|
});
|
|
139
139
|
}); };
|
|
140
140
|
fetchData();
|
|
141
|
-
}, [account]);
|
|
141
|
+
}, [account, bondData]);
|
|
142
142
|
var _f = useState(null), sortConfig = _f[0], setSortConfig = _f[1];
|
|
143
143
|
var _g = useState(mappedUserBills), sortedBonds = _g[0], setSortedBonds = _g[1];
|
|
144
144
|
var handleSort = function (key) {
|