@ape.swap/bonds-sdk 2.5.2-test6 → 2.5.2-test7
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.
- package/dist/main.js +3 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -74427,10 +74427,11 @@ const BondModal = ({ onDismiss, bondAddress, bondChain, handlePurchasedBond }) =
|
|
|
74427
74427
|
}
|
|
74428
74428
|
}
|
|
74429
74429
|
};
|
|
74430
|
-
const [openNoBonusModal] = useModal(jsx$2(NoBonusModal, { onAcknowledge: handleBothPurchases, showcaseTokenName: bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName }), true, true);
|
|
74430
|
+
const [openNoBonusModal] = useModal(jsx$2(NoBonusModal, { onAcknowledge: handleBothPurchases, showcaseTokenName: bondData === null || bondData === void 0 ? void 0 : bondData.showcaseTokenName }), true, true, 'NoBonusModal');
|
|
74431
74431
|
const handleOpenModal = () => {
|
|
74432
74432
|
var _a;
|
|
74433
|
-
|
|
74433
|
+
const bonus = (_a = bondData === null || bondData === void 0 ? void 0 : bondData.bonus) !== null && _a !== void 0 ? _a : 0;
|
|
74434
|
+
if (bonus < 0) {
|
|
74434
74435
|
openNoBonusModal();
|
|
74435
74436
|
}
|
|
74436
74437
|
else {
|