Skip to content

Commit

Permalink
fix credo
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdanchi authored and danil-chibrikov committed Jun 1, 2022
1 parent dcb48c6 commit b6a8c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/moon/components/select/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ defmodule Moon.Components.Select.Helpers do
Enum.find(options, fn option -> "#{option.value}" == "#{v}" end)
end

def render_icon(assigns, [module, args] = _option) do
def render_icon(assigns, option) do
[module, args] = option
default_prop = prepare_icon_default_prop(module)
Map.merge(assigns, default_prop) |> Map.merge(args) |> module.render()
end
Expand Down

0 comments on commit b6a8c97

Please sign in to comment.