Skip to content

Commit

Permalink
fix: handle case where action.accept is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 10, 2024
1 parent 6391b92 commit b10b958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ash_authentication/add_ons/confirmation/transformer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ defmodule AshAuthentication.AddOn.Confirmation.Transformer do
:ok <- validate_action_argument_option(action, :confirm, :type, [Type.String]),
:ok <- validate_action_has_change(action, GenerateTokenChange),
:ok <- validate_action_option(action, :require_atomic?, [false]) do
accept_fields = MapSet.new(action.accept)
accept_fields = MapSet.new(action.accept || [])

strategy.monitor_fields
|> MapSet.new()
Expand Down

0 comments on commit b10b958

Please sign in to comment.