Skip to content

Commit

Permalink
Update button text
Browse files Browse the repository at this point in the history
  • Loading branch information
rayc2045 committed May 26, 2024
1 parent 1d21867 commit 88a4e23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/shop/checkout.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ <h2 class="text-xl font-bold">Payment Options</h2>
</div>

<button
x-text="paymentOptions.findIndex(opt => opt.checked) > 1
? `Proceed to ${paymentOptions.find(opt => opt.checked).title}`
: 'Place order'"
x-text="paymentOptions.findIndex(opt => opt.checked) <= 1
? 'Place order'
: `Proceed to ${paymentOptions.find(opt => opt.checked).title}`"
:class="btn.dark"
class="w-full"
@click="checkInput()"
Expand Down

0 comments on commit 88a4e23

Please sign in to comment.