Skip to content

Commit

Permalink
feat: removed TODD
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Jul 20, 2020
1 parent 120b456 commit 8e6785e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Expand Up @@ -42,6 +42,7 @@ export type SBCurrencySelectFormType = {
export type SBFormPaymentMethod =
| SBPaymentMethodType
| (SBCardType & {
id?: string
limits: SBPaymentMethodType['limits']
type: 'USER_CARD'
})
Expand Down
Expand Up @@ -53,9 +53,7 @@ class Checkout extends PureComponent<Props> {
})
break
case 'USER_CARD':
// TODO figure out id
// this.props.simpleBuyActions.createSBOrder(formValues.method.id)
this.props.simpleBuyActions.createSBOrder()
this.props.simpleBuyActions.createSBOrder(this.props.method.id)
break
case 'BANK_ACCOUNT':
this.props.simpleBuyActions.createSBOrder()
Expand Down
Expand Up @@ -8,11 +8,11 @@ import {
SBCardType,
SBOrderType,
SBPairType,
SBPaymentMethodsType
SBPaymentMethodsType,
SBPaymentMethodType
} from 'core/types'
import { getData } from './selectors'
import { RootState } from 'data/rootReducer'
import { SBFormPaymentMethod } from 'data/components/simpleBuy/types'
import Failure from './template.failure'
import Loading from './template.loading'
import React, { PureComponent } from 'react'
Expand Down Expand Up @@ -52,7 +52,7 @@ const connector = connect(mapStateToProps, mapDispatchToProps)

export type OwnProps = {
handleClose: () => void
method: SBFormPaymentMethod
method: SBPaymentMethodType
order?: SBOrderType
pair: SBPairType
}
Expand Down
Expand Up @@ -108,6 +108,7 @@ type SBPaymentTypes = 'PAYMENT_CARD' | 'BANK_ACCOUNT' | 'FUNDS' | 'USER_CARD'
export type SBPaymentMethodType = {
card?: SBCard
currency: FiatType
id?: string
limits: {
max: string
min: string
Expand Down

0 comments on commit 8e6785e

Please sign in to comment.