adjust payment step

This commit is contained in:
Pete Matsyburka
2024-07-31 22:56:18 +03:00
parent 66bc8cfb5f
commit cf6b378ccb
7 changed files with 98 additions and 15 deletions
+2 -1
View File
@@ -94,6 +94,7 @@
:field="field"
@click-condition="isShowConditionsModal = true"
@click-description="isShowDescriptionModal = true"
@click-formula="isShowFormulaModal = true"
/>
<span
v-else-if="field.type !== 'heading'"
@@ -345,7 +346,7 @@ export default {
},
methods: {
buildDefaultName (field, fields) {
if (field.type === 'payment' && field.preferences?.price) {
if (field.type === 'payment' && field.preferences?.price && !field.preferences?.formula) {
const { price, currency } = field.preferences || {}
const formattedPrice = new Intl.NumberFormat([], {