adjust payment step

This commit is contained in:
Pete Matsyburka committed 2024-07-31 22:56:18 +03:00
1 parent 66bc8cfb5f
commit cf6b378ccb
7 files changed
+98 -15

No files matched your search

+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([], {