From c2d03a59c6832d58ec7644bc74e4fba608c7c00e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 12 Apr 2018 23:09:52 +0300 Subject: [PATCH] Fix for saving change to WePay settings --- resources/views/accounts/account_gateway.blade.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/resources/views/accounts/account_gateway.blade.php b/resources/views/accounts/account_gateway.blade.php index fe04136bc99c..dbdb0a342cec 100644 --- a/resources/views/accounts/account_gateway.blade.php +++ b/resources/views/accounts/account_gateway.blade.php @@ -298,11 +298,13 @@ $('.secondary-gateway').show(); } - if (primaryId == {{ GATEWAY_WEPAY }}) { - $('.save-button').prop('disabled', true); - } else { - $('.save-button').prop('disabled', false); - } + @if (! $accountGateway) + if (primaryId == {{ GATEWAY_WEPAY }}) { + $('.save-button').prop('disabled', true); + } else { + $('.save-button').prop('disabled', false); + } + @endif var val = primaryId || secondaryId; $('.gateway-fields').hide();