@orderly.network/affiliate 2.11.0 → 2.11.1
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.mjs
CHANGED
|
@@ -772,6 +772,9 @@ var ReferralCodeForm = (props) => {
|
|
|
772
772
|
var NoCommissionCard = (props) => {
|
|
773
773
|
const { t } = useTranslation();
|
|
774
774
|
const amount = props.directBonusRebateRate;
|
|
775
|
+
if (!amount || amount <= 0) {
|
|
776
|
+
return null;
|
|
777
|
+
}
|
|
775
778
|
return /* @__PURE__ */ jsxs(
|
|
776
779
|
Flex,
|
|
777
780
|
{
|
|
@@ -1072,8 +1075,7 @@ var Hero = () => {
|
|
|
1072
1075
|
modal.show(ReferralCodeFormDialogId, {
|
|
1073
1076
|
type: "create" /* Create */,
|
|
1074
1077
|
maxRebateRate,
|
|
1075
|
-
directBonusRebateRate:
|
|
1076
|
-
// Hardcoded value before API is ready
|
|
1078
|
+
directBonusRebateRate: 0,
|
|
1077
1079
|
onSuccess: () => {
|
|
1078
1080
|
multiLevelRebateInfoMutate();
|
|
1079
1081
|
}
|
|
@@ -1530,8 +1532,8 @@ var useMultiLevelReferralScript = () => {
|
|
|
1530
1532
|
modal.show(ReferralCodeFormDialogId, {
|
|
1531
1533
|
type: "create" /* Create */,
|
|
1532
1534
|
maxRebateRate,
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
+
// 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
|
|
1536
|
+
directBonusRebateRate: 0,
|
|
1535
1537
|
onSuccess: () => {
|
|
1536
1538
|
multiLevelRebateInfoMutate();
|
|
1537
1539
|
}
|