Commit 77d15137 authored by Stephanie Kirtiadi's avatar Stephanie Kirtiadi
Browse files

Fix perk selection when other amount is selected.

The initial symptom is that when an "other" amount is
selected after a perk tile is clicked, and the amount
is less than the minimum amount for the perk, the perk
is not cancelled. This causes a perk to be selected
in Civi though no perk is true, instead of blank.
A perk selection cancellation is now implemented if such
condition happens.

Issue #49118
parent 92831598
This diff is collapsed.
This diff is collapsed.
...@@ -88,6 +88,7 @@ export function _GivingForm(props) { ...@@ -88,6 +88,7 @@ export function _GivingForm(props) {
setSelectedPrice(price); setSelectedPrice(price);
if (getDefaultPerk(price) == null || noPerk) { if (getDefaultPerk(price) == null || noPerk) {
setNoPerk(true); setNoPerk(true);
} else { } else {
setSelectedPerk(getDefaultPerk(price)); setSelectedPerk(getDefaultPerk(price));
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment