diff --git a/resources/views/invoices/view.blade.php b/resources/views/invoices/view.blade.php
index 3e5310ea40a6..e0a5cba5a2e4 100644
--- a/resources/views/invoices/view.blade.php
+++ b/resources/views/invoices/view.blade.php
@@ -25,10 +25,7 @@
@include('partials.checkout_com_payment')
@else
- @if (Session::get('trackEventAction') === '/buy_pro_plan')
- {!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
- {!! Button::primary(trans('texts.return_to_app'))->asLinkTo(URL::to('/dashboard'))->large() !!}
- @elseif ($invoice->is_quote)
+ @if ($invoice->is_quote)
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
@if ($showApprove)
{!! Button::success(trans('texts.approve'))->asLinkTo(URL::to('/approve/' . $invitation->invitation_key))->large() !!}
@@ -40,8 +37,11 @@
@else
{{ trans('texts.pay_now') }}
@endif
- @else
+ @else
{!! Button::normal(trans('texts.download_pdf'))->withAttributes(['onclick' => 'onDownloadClick()'])->large() !!}
+ @if ($account->isNinjaAccount())
+ {!! Button::primary(trans('texts.return_to_app'))->asLinkTo(URL::to('/dashboard'))->large() !!}
+ @endif
@endif