refactor: fix credo warnings and format code
- Replace Enum.map/2 |> Enum.join/2 with Enum.map_join/3 for efficiency - Refactor get_existing_form_values to reduce cyclomatic complexity - Replace length/1 with Enum.empty?/1 for better performance - Update gettext translations
This commit is contained in:
parent
97c9ef670b
commit
98dc73ee37
10 changed files with 1180 additions and 159 deletions
|
|
@ -248,6 +248,7 @@ defmodule MvWeb.MemberLive.Show do
|
|||
# Calculate last and current cycle status from loaded cycles
|
||||
last_cycle_status = get_last_cycle_status(member)
|
||||
current_cycle_status = get_current_cycle_status(member)
|
||||
|
||||
member =
|
||||
member
|
||||
|> Map.put(:last_cycle_status, last_cycle_status)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue