Skip to content

Commit

Permalink
fix(BuySell): fix tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Welber committed Jun 8, 2018
1 parent cccf332 commit 0861255
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -80,10 +80,10 @@ class BuySellContainer extends React.PureComponent {
}

render () {
const { data, type, fields } = this.props
const { data, fields } = this.props

const view = data.cata({
Success: (value) => this.renderPartner(path(['buySell', 'value'], value), value.options, type, fields),
Success: (value) => this.renderPartner(path(['buySell', 'value'], value), value.options, path(['type'], fields), fields),
Failure: (message) => <div>failure: {message}</div>,
Loading: () => <Loading />,
NotAsked: () => <Loading />
Expand Down
@@ -1,4 +1,4 @@
import { lift } from 'ramda'
import { lift, path } from 'ramda'
import { formValueSelector } from 'redux-form'
import { createDeepEqualSelector } from 'services/ReselectHelper'
import { selectors } from 'data'
Expand All @@ -23,6 +23,7 @@ export const getData = createDeepEqualSelector(

export const getFields = (state) => {
return {
type: path(['form', 'buySellTabStatus', 'values', 'status'], state) || 'buy',
country: formValueSelector('selectPartner')(state, 'country'),
stateSelection: formValueSelector('selectPartner')(state, 'state'),
email: formValueSelector('selectPartner')(state, 'email')
Expand Down

0 comments on commit 0861255

Please sign in to comment.