Skip to content

Commit

Permalink
Update examples of inputs_for
Browse files Browse the repository at this point in the history
  • Loading branch information
krns authored Jan 16, 2025
1 parent 8df189a commit 2dc6891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2626,7 +2626,7 @@ defmodule Phoenix.Component do
>
> # Helper function to calculate remaining time
> defp calculate_remaining(changeset) do
> total = Ecto.Changeset.get_field(changeset)
> total = Ecto.Changeset.get_field(changeset, :total)
> activities = Ecto.Changeset.get_embed(changeset, :activities)
>
> Enum.reduce(activities, total, fn activity, acc ->
Expand Down

0 comments on commit 2dc6891

Please sign in to comment.