@ape.swap/bonds-sdk 1.0.583 → 1.0.584

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.
@@ -100,11 +100,11 @@ var YourBonds = function (_a) {
100
100
  var _c = useState(null), claimTx = _c[0], setClaimTx = _c[1];
101
101
  var _d = useState(null), toastMessage = _d[0], setToastMessage = _d[1];
102
102
  useEffect(function () {
103
- if (claimTx) {
104
- setToastMessage("Transaction complete: ".concat(claimTx));
103
+ if (hash) {
104
+ setToastMessage("Transaction complete: ".concat(hash));
105
105
  setTimeout(function () { return setToastMessage(null); }, 5000); // Hide toast after 5 seconds
106
106
  }
107
- }, [claimTx]);
107
+ }, [hash]);
108
108
  // Fetch data
109
109
  var _e = useState([]), bondData = _e[0], setBondData = _e[1];
110
110
  var _f = useState([]), mappedUserBills = _f[0], setMappedUserBills = _f[1];
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.583",
6
+ "version": "1.0.584",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",