From 6768bda5b3d95723b563d8e3e5c663eabfa56e34 Mon Sep 17 00:00:00 2001 From: Cory McDonald Date: Mon, 5 Aug 2019 14:28:13 -0500 Subject: [PATCH] Don't show default currency modal on pending accounts (#2101) --- app/views/publishers/home.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/publishers/home.html.slim b/app/views/publishers/home.html.slim index 2bfa413e7d..d20e3842e2 100644 --- a/app/views/publishers/home.html.slim +++ b/app/views/publishers/home.html.slim @@ -2,7 +2,7 @@ noscript div.noscript-warning = t ".noscript" - open_confirm_default_currency_modal = !flash[:taken_channel_id] && \ - @publisher.uphold_connection.uphold_verified? && \ + @publisher.uphold_connection.uphold_verified? && @publisher.uphold_connection.status != UpholdConnection::PENDING && \ (@publisher.uphold_connection.default_currency_confirmed_at.blank? || @publisher.uphold_connection.default_currency.blank?) script type="text/html" id="confirm_default_currency_modal_wrapper" = render partial: 'confirm_default_currency_modal', locals: { possible_currencies: @possible_currencies || []}