Skip to content

Commit

Permalink
feat: codea cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Jul 27, 2020
1 parent 6839082 commit b8f56da
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -53,8 +53,6 @@ const Success: React.FC<InjectedFormProps<{}, Props> & Props> = props => {
}

const getPaymentMethod = (order: SBOrderType) => {
// props.order.paymentType FUNDS
// props.order.paymentType === 'PAYMENT_CARD'
switch (order.paymentType) {
case 'PAYMENT_CARD':
return (
Expand Down Expand Up @@ -158,9 +156,7 @@ const Success: React.FC<InjectedFormProps<{}, Props> & Props> = props => {
defaultMessage='Payment Method'
/>
</Title>
<Value>
{props.order.paymentMethodId || getPaymentMethod(props.order)}
</Value>
<Value>{getPaymentMethod(props.order)}</Value>
</Row>
<Bottom>
<Text size='12px' weight={500} color='grey600'>
Expand Down

0 comments on commit b8f56da

Please sign in to comment.