@orderly.network/affiliate 2.11.0-alpha.0 → 2.11.1-alpha.0
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/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -774,6 +774,9 @@ var ReferralCodeForm = (props) => {
|
|
|
774
774
|
var NoCommissionCard = (props) => {
|
|
775
775
|
const { t } = i18n.useTranslation();
|
|
776
776
|
const amount = props.directBonusRebateRate;
|
|
777
|
+
if (!amount || amount <= 0) {
|
|
778
|
+
return null;
|
|
779
|
+
}
|
|
777
780
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
778
781
|
ui.Flex,
|
|
779
782
|
{
|
|
@@ -1074,8 +1077,7 @@ var Hero = () => {
|
|
|
1074
1077
|
ui.modal.show(ReferralCodeFormDialogId, {
|
|
1075
1078
|
type: "create" /* Create */,
|
|
1076
1079
|
maxRebateRate,
|
|
1077
|
-
directBonusRebateRate:
|
|
1078
|
-
// Hardcoded value before API is ready
|
|
1080
|
+
directBonusRebateRate: 0,
|
|
1079
1081
|
onSuccess: () => {
|
|
1080
1082
|
multiLevelRebateInfoMutate();
|
|
1081
1083
|
}
|
|
@@ -1532,8 +1534,8 @@ var useMultiLevelReferralScript = () => {
|
|
|
1532
1534
|
ui.modal.show(ReferralCodeFormDialogId, {
|
|
1533
1535
|
type: "create" /* Create */,
|
|
1534
1536
|
maxRebateRate,
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
+
// because there is no multi level code, the /v1/referral/multi_level/rebate_info interface will throw an error, so here set to 0, and hide the extra bonus display when creating multi level code
|
|
1538
|
+
directBonusRebateRate: 0,
|
|
1537
1539
|
onSuccess: () => {
|
|
1538
1540
|
multiLevelRebateInfoMutate();
|
|
1539
1541
|
}
|