Skip to content

Commit 0b0d920

Browse files
committed
remove redundant param
1 parent 16fba4d commit 0b0d920

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/algora/bounties/bounties.ex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,7 @@ defmodule Algora.Bounties do
828828
bounty: Bounty.t(),
829829
ticket_ref: %{owner: String.t(), repo: String.t(), number: integer()},
830830
claims: [Claim.t()],
831-
recipient: User.t(),
832-
contract_type: Bounty.contract_type()
831+
recipient: User.t()
833832
]
834833
) ::
835834
[LineItem.t()]
@@ -850,8 +849,8 @@ defmodule Algora.Bounties do
850849

851850
transaction_fee_pct = Payments.get_transaction_fee_pct()
852851

853-
case opts[:contract_type] do
854-
:marketplace ->
852+
case opts[:bounty] do
853+
%{contract_type: :marketplace} ->
855854
[
856855
%LineItem{
857856
amount: Money.mult!(amount, Decimal.add(1, Decimal.add(platform_fee_pct, transaction_fee_pct))),

lib/algora_web/live/contract_live.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,8 +793,7 @@ defmodule AlgoraWeb.ContractLive do
793793
},
794794
bounty: socket.assigns.bounty,
795795
ticket_ref: socket.assigns.ticket_ref,
796-
recipient: socket.assigns.contractor,
797-
contract_type: socket.assigns.bounty.contract_type
796+
recipient: socket.assigns.contractor
798797
)
799798

800799
assign(socket, :line_items, line_items)

0 commit comments

Comments
 (0)