Skip to content

Commit

Permalink
feat(simple buy): handle no invitations
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Mar 31, 2020
1 parent 986eaea commit d2107e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export default ({
const invitations = (yield select(
selectors.core.settings.getInvitations
)).getOrElse({ simpleBuy: false })
const isInvitedToSB = invitations.simpleBuy
const isInvitedToSB = invitations && invitations.simpleBuy
const isCoinify = (yield select(
selectors.core.kvStore.buySell.getCoinifyUser
)).getOrElse(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Navigation from './template'
import React from 'react'

type OwnProps = {
invitations: { [key in string]: boolean }
invitations?: { [key in string]: boolean }
userKYCState: KycStateType
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ const Navigation = (props: OwnProps & Props) => {
</Destination>
</MenuItem>
</LinkContainer>
{props.isCoinifyUser || !props.invitations.simpleBuy ? (
{props.isCoinifyUser ||
!props.invitations ||
!props.invitations.simpleBuy ? (
<SpotlightLinkContainer to='/buy-sell' activeClassName='active'>
<MenuItem data-e2e='buyAndSellLink'>
<JoyrideSpotlight className='wallet-intro-tour-step-5' />
Expand Down

0 comments on commit d2107e8

Please sign in to comment.