Skip to content

Commit e477324

Browse files
committed
update payout account buttons
1 parent 748450a commit e477324

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/algora_web/live/user/transactions_live.ex

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,18 @@ defmodule AlgoraWeb.User.TransactionsLive do
433433
<.button class="flex-1" phx-click="setup_payout_account">
434434
Continue onboarding
435435
</.button>
436-
<% else %>
437-
<.button class="flex-1" phx-click="setup_payout_account" variant="secondary">
436+
<% end %>
437+
438+
<%= if @account.details_submitted and @account.type != :express do %>
439+
<.button class="flex-1" phx-click="setup_payout_account">
438440
Update details
439441
</.button>
440442
<% end %>
441443
442444
<%= if @account.details_submitted and @account.type == :express do %>
445+
<.button class="flex-1" phx-click="setup_payout_account" variant="secondary">
446+
Update details
447+
</.button>
443448
<.button class="flex-1" phx-click="view_dashboard">
444449
View dashboard
445450
</.button>

0 commit comments

Comments
 (0)