Skip to content

Commit

Permalink
fix phone/payment fields visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Jan 1, 2024
1 parent 38a8037 commit 30582b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/javascript/template_builder/field_type.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
v-for="(icon, type) in fieldIcons"
:key="type"
>
<li v-if="withPhone || withPayment || !['phone', 'payment'].includes(type)">
<li v-if="(withPhone || type != 'phone') && (withPayment || type != 'payment')">
<a
href="#"
class="text-sm py-1 px-2"
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/template_builder/mobile_fields.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
v-for="(icon, type) in fieldIcons"
:key="type"
>
<li v-if="withPhone || withPayment || !['phone', 'payment'].includes(type)">
<li v-if="(withPhone || type != 'phone') && (withPayment || type != 'payment')">
<a
href="#"
class="text-sm py-1 px-2"
Expand Down

0 comments on commit 30582b2

Please sign in to comment.