Skip to content

Commit

Permalink
credo ignore for market close
Browse files Browse the repository at this point in the history
  • Loading branch information
daveminer committed Nov 24, 2023
1 parent 1b4b574 commit 5511e2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions lib/basket_web/live/overview.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ defmodule BasketWeb.OverviewLive do
assign(socket, :basket, (socket.assigns.basket ++ [row]) |> sort_by_ticker())

:market_closed ->
# credo:disable-for-next-line
# TODO: add market closed row
socket

Expand Down
1 change: 0 additions & 1 deletion lib/basket_web/live/overview/ticker_add.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ defmodule BasketWeb.Live.Overview.TickerAdd do
defp build_ticker_bars(%{"bars" => nil}), do: :no_data

defp build_ticker_bars(%{"bars" => ticker_bars}) do
# TODO: check first
new_ticker_bars = Map.to_list(ticker_bars) |> List.first()

case new_ticker_bars do
Expand Down

0 comments on commit 5511e2d

Please sign in to comment.