Skip to content

Commit

Permalink
fix(Coinify): add missing kyc state to switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Welber committed May 31, 2018
1 parent 79de8bd commit 3fc8780
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ const KYCNotification = (props) => {
}
<ISXContainer>
<Text size='13px' color='brand-primary' weight={400} style={spacing('mb-20')}>
{ header.text }
{ state && header.text }
</Text>
<Text size='13px' weight={300} style={spacing('mb-20')}>
{ body.text }
{ state && body.text }
</Text>
{
state === 'pending' || state === 'rejected' || state === 'expired'
? <Button onClick={() => onTrigger(kyc)} nature='empty-secondary'>
<Text size='13px' color='brand-secondary'>
{ kycNotificationButtonHelper(state)['text'] }
{ state && path(['text'], kycNotificationButtonHelper(state)) }
</Text>
</Button>
: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,14 @@ export const bodyStatusHelper = (status, isBuy) => {

export const kycBodyHelper = (status) => {
switch (status) {
case 'reviewing':
case 'processing': return { text: <FormattedMessage id='scenes.coinify.details.kyc.reviewing' defaultMessage='Your request for authentication has been submitted and will be reviewed shortly. Coinify will email you a status updated within 48 business hours. If you have any questions about the status of your submission, feel free to reach out to Coinify directly at www.coinify.com/support' /> }
case 'pending': return { text: <FormattedMessage id='scenes.coinify.detailsmodal.kyc.processing' defaultMessage='Your identity verification is processing.' /> }
case 'completed': return { text: <FormattedMessage id='scenes.coinify.detailsmodal.kyc.completed' defaultMessage='Your identity verification is complete! Your limits have been raised.' /> }
case 'rejected': return { text: <FormattedMessage id='scenes.coinify.detailsmodal.kyc.rejected' defaultMessage='There was an issue verifying your identity with the documents provided. Please try uploading different identification. Bank transfers are unavailable until we can successfully verify your identity.' /> }
case 'failed': return { text: <FormattedMessage id='scenes.coinify.detailsmodal.kyc.failed' defaultMessage='Your identity verification has failed. Please contact support.' /> }
case 'cancelled': return { text: <FormattedMessage id='scenes.coinify.detailsmodal.kyc.cancelled' defaultMessage='Your identity verification was cancelled. Please try again.' /> }
default: return { color: '', text: <FormattedMessage id='scenes.coinify.detailsmodal.kyc.unknown' defaultMessage='Status is unknown' /> }
}
}

Expand Down

0 comments on commit 3fc8780

Please sign in to comment.