We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c8094 commit 0870c09Copy full SHA for 0870c09
lib/algora_web/live/user/transactions_live.ex
@@ -37,7 +37,11 @@ defmodule AlgoraWeb.User.TransactionsLive do
37
Payments.subscribe()
38
end
39
40
- {:ok, account} = Payments.fetch_account(socket.assigns.current_user)
+ account =
41
+ case Payments.fetch_account(socket.assigns.current_user) do
42
+ {:ok, account} -> account
43
+ {:error, :not_found} -> nil
44
+ end
45
46
{:ok,
47
socket
0 commit comments