@ape.swap/bonds-sdk 1.0.388 → 1.0.389
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.
|
@@ -166,7 +166,7 @@ var Bonds = function (_a) {
|
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
var _f = useState({ key: 'discount', direction: 'asc' }), sortConfig = _f[0], setSortConfig = _f[1];
|
|
169
|
-
var _g = useState(
|
|
169
|
+
var _g = useState(sortedHotBonds), sortedBonds = _g[0], setSortedBonds = _g[1];
|
|
170
170
|
var handleSort = function (key) {
|
|
171
171
|
var direction = 'asc';
|
|
172
172
|
if (sortConfig.key === key && sortConfig.direction === 'asc') {
|
|
@@ -198,7 +198,7 @@ var Bonds = function (_a) {
|
|
|
198
198
|
return 0;
|
|
199
199
|
});
|
|
200
200
|
setSortedBonds(sorted);
|
|
201
|
-
}, [sortConfig,
|
|
201
|
+
}, [sortConfig, bondData]);
|
|
202
202
|
var _h = useState(false), isModalOpen = _h[0], setIsModalOpen = _h[1];
|
|
203
203
|
var _j = useState(null), selectedBond = _j[0], setSelectedBond = _j[1];
|
|
204
204
|
var rowClick = function (bond) {
|