Skip to content

Commit fecacf7

Browse files
authored
fix: keycloak address displaying (blockscout#14155)
1 parent 299d3f9 commit fecacf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/explorer/lib/explorer/third_party_integrations

apps/explorer/lib/explorer/third_party_integrations/keycloak.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ defmodule Explorer.ThirdPartyIntegrations.Keycloak do
475475
defp do_send_registration_webhook(_email, nil), do: :ok
476476

477477
defp create_auth(user, address_hash \\ nil) do
478-
address_hash = address_hash || List.first(user["attributes"]["address"] || [])
478+
address_hash = address_hash || List.last(user["attributes"]["address"] || [])
479479

480480
%Auth{
481481
uid: user["id"],

0 commit comments

Comments
 (0)