Skip to content

Commit

Permalink
Allow partial investment quantities (maybe-finance#1174)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed Sep 13, 2024
1 parent 949d3d8 commit 30f7c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/account/trades/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</div>

<div data-trade-form-target="qtyInput">
<%= form.number_field :qty, label: t(".qty"), placeholder: "10", min: 0 %>
<%= form.number_field :qty, label: t(".qty"), placeholder: "10", min: 0.000000000000000001, step: "any" %>
</div>

<div data-trade-form-target="priceInput">
Expand Down
2 changes: 1 addition & 1 deletion app/views/accounts/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 class="text-3xl font-semibold font-display"><%= t(".title") %></h1>
<%= modal do %>
<div class="flex flex-col min-h-[530px] w-screen max-w-xl" data-controller="list-keyboard-navigation">
<div class="flex flex-col w-screen max-w-xl" data-controller="list-keyboard-navigation">
<% if @account.accountable.blank? %>
<div class="border-b border-alpha-black-25 p-4 text-gray-400">
<%= t ".select_accountable_type" %>
Expand Down

0 comments on commit 30f7c12

Please sign in to comment.