Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bp 3472 not able to use decimals for the paymentfee settings #144

Conversation

vegimcarkaxhija
Copy link
Contributor

fix payment_fee to accept decimals

@vegimcarkaxhija vegimcarkaxhija requested a review from harli91 March 14, 2024 11:01
@@ -181,7 +181,7 @@ export default {
return
}

this.config.payment_fee = parseFloat(value.toString().match( /\d+/g ).join(''))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the input is of type number why do you need the regex matching?

@vegimcarkaxhija vegimcarkaxhija requested a review from harli91 March 14, 2024 12:36
@vegimcarkaxhija vegimcarkaxhija merged commit e9a2236 into develop Mar 14, 2024
1 check passed
@vegimcarkaxhija vegimcarkaxhija deleted the BP-3472-Not-able-to-use-decimals-for-the-paymentfee-settings branch March 14, 2024 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants