We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3593ab9 commit ad56f70Copy full SHA for ad56f70
1 file changed
src/components/DonateMoney.vue
@@ -106,12 +106,12 @@ export default {
106
this.customAmountSelected = !this.customAmountSelected;
107
},
108
submit() {
109
- let value = this.donationAmount;
+ const value = this.customAmountSelected ?
110
+ this.customDonationAmount : this.donationAmount;
111
const input = format(value);
112
113
if (this.customAmountSelected) {
- value = this.customDonationAmount;
114
- // provides user feedback on input, actual validation occurs on submit
+ // inputRule provides user feedback on input, but actual validation occurs on submit
115
if (this.$refs.input.validate()) this.createCheckoutSession(input);
116
}
117
0 commit comments