@miden-npm/react 0.0.15 → 0.0.16

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.cjs CHANGED
@@ -3119,16 +3119,22 @@ function BzpCheckoutCard({
3119
3119
  (0, import_react11.useEffect)(() => {
3120
3120
  let options2 = [];
3121
3121
  if (paymentObject.currency === "USD") {
3122
- options2 = paymentTypeOptions.filter(
3123
- (option) => option.value !== "BANK_TRANSFER"
3124
- );
3122
+ if (paymentObject.amount < 50) {
3123
+ options2 = paymentTypeOptions.filter(
3124
+ (option) => option.value !== "BANK_TRANSFER" && option.value !== "STABLE_COIN"
3125
+ );
3126
+ } else {
3127
+ options2 = paymentTypeOptions.filter(
3128
+ (option) => option.value !== "BANK_TRANSFER"
3129
+ );
3130
+ }
3125
3131
  } else {
3126
3132
  options2 = paymentTypeOptions.filter(
3127
3133
  (option) => option.value !== "STABLE_COIN"
3128
3134
  );
3129
3135
  }
3130
3136
  setFilteredPaymentTypeOptions(options2);
3131
- }, [paymentObject.currency]);
3137
+ }, [paymentObject.currency, paymentObject.amount, paymentTypeOptions]);
3132
3138
  (0, import_react11.useEffect)(() => {
3133
3139
  if (filteredPaymentTypeOptions.length) {
3134
3140
  setPaymentType(filteredPaymentTypeOptions[0].value);