Skip to content

Commit c5bfd93

Browse files
committed
fix: error when deleting payout account
1 parent efb5c8e commit c5bfd93

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/algora_web/live/user/transactions_live.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ defmodule AlgoraWeb.User.TransactionsLive do
99
alias Algora.Payments
1010
alias Algora.Util
1111

12+
require Logger
13+
1214
defmodule PayoutAccountForm do
1315
@moduledoc false
1416
use Ecto.Schema
@@ -136,7 +138,9 @@ defmodule AlgoraWeb.User.TransactionsLive do
136138
# Algora.Signal.send_error(error, %StripeAccountDeleteError{})
137139
# {:noreply, put_flash(socket, :error, "Failed to delete payout account")}
138140

139-
{:error, _reason} ->
141+
{:error, reason} ->
142+
Logger.error("Failed to delete payout account: #{inspect(reason)}")
143+
140144
{:noreply,
141145
socket
142146
|> assign(:show_delete_confirmation, false)
@@ -471,7 +475,6 @@ defmodule AlgoraWeb.User.TransactionsLive do
471475
:if={@show_delete_confirmation}
472476
id="delete-confirmation-dialog"
473477
show={@show_delete_confirmation}
474-
on_cancel={JS.patch(~p"/user/transactions", [])}
475478
>
476479
<.dialog_content>
477480
<.dialog_header>

0 commit comments

Comments
 (0)