Fixed back button for plan confirmation page

no issue

- Back button was removed for confirmation page when opened via Portal link, as we checked for `lastPage` available only
This commit is contained in:
Rish 2020-10-02 18:00:01 +05:30
parent c4b0aa9b12
commit c58fd0c8de

View File

@ -36,7 +36,7 @@ const Header = ({member, lastPage, brandColor, onBack, showConfirmation, confirm
}
return (
<header className='gh-portal-detail-header'>
<BackButton brandColor={brandColor} onClick={e => onBack(e)} hidden={!lastPage} />
<BackButton brandColor={brandColor} onClick={e => onBack(e)} hidden={!lastPage && !showConfirmation} />
<h3 className='gh-portal-main-title'>{title}</h3>
</header>
);