@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.js CHANGED
@@ -3082,16 +3082,22 @@ function BzpCheckoutCard({
3082
3082
  useEffect6(() => {
3083
3083
  let options2 = [];
3084
3084
  if (paymentObject.currency === "USD") {
3085
- options2 = paymentTypeOptions.filter(
3086
- (option) => option.value !== "BANK_TRANSFER"
3087
- );
3085
+ if (paymentObject.amount < 50) {
3086
+ options2 = paymentTypeOptions.filter(
3087
+ (option) => option.value !== "BANK_TRANSFER" && option.value !== "STABLE_COIN"
3088
+ );
3089
+ } else {
3090
+ options2 = paymentTypeOptions.filter(
3091
+ (option) => option.value !== "BANK_TRANSFER"
3092
+ );
3093
+ }
3088
3094
  } else {
3089
3095
  options2 = paymentTypeOptions.filter(
3090
3096
  (option) => option.value !== "STABLE_COIN"
3091
3097
  );
3092
3098
  }
3093
3099
  setFilteredPaymentTypeOptions(options2);
3094
- }, [paymentObject.currency]);
3100
+ }, [paymentObject.currency, paymentObject.amount, paymentTypeOptions]);
3095
3101
  useEffect6(() => {
3096
3102
  if (filteredPaymentTypeOptions.length) {
3097
3103
  setPaymentType(filteredPaymentTypeOptions[0].value);