diff --git a/resources/views/accounts/account_gateway.blade.php b/resources/views/accounts/account_gateway.blade.php index c743fdd946d5..207398b73744 100644 --- a/resources/views/accounts/account_gateway.blade.php +++ b/resources/views/accounts/account_gateway.blade.php @@ -1,7 +1,7 @@ @extends('header') @section('top-right') - @if (env('WEPAY_CLIENT_ID') && ! count($accountGatewaysIds)) + @if (env('WEPAY_CLIENT_ID') && isset($accountGatewaysIds) && ! count($accountGatewaysIds)) {!! Button::primary(trans('texts.sign_up_with_wepay')) ->asLinkTo(URL::to('/gateways/create?wepay=true')) !!} @endif