Skip to content

Commit

Permalink
feat(pricing): remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Han committed Dec 14, 2021
1 parent 5136679 commit 112076a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const getData = (state: RootState) => {
return lift(
(
bankAccounts: ExtractSuccess<typeof bankAccountsR>,
buyQuote: ExtractSuccess<typeof buyQuoteR>,
quote: ExtractSuccess<typeof quoteR>,
sbBalances: ExtractSuccess<typeof sbBalancesR>,
userData: ExtractSuccess<typeof userDataR>,
Expand All @@ -35,7 +34,6 @@ export const getData = (state: RootState) => {
cards: ExtractSuccess<typeof cardsR>
) => ({
bankAccounts,
buyQuote,
cards,
isSddFlow: sddEligible.eligible || userSDDTier === 3,
isUserSddVerified,
Expand All @@ -47,7 +45,6 @@ export const getData = (state: RootState) => {
)(
bankAccountsR,
quoteR,
buyQuoteR,
sbBalancesR,
userDataR,
withdrawLockCheckR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ class Checkout extends PureComponent<Props> {
}

render() {
console.log('higher level props', this.props)

return this.props.data.cata({
Failure: () => (
<FlyoutOopsError
Expand All @@ -198,10 +196,7 @@ class Checkout extends PureComponent<Props> {
),
Loading: () => <Loading />,
NotAsked: () => <Loading />,
Success: (val) => {
console.log('val here: ', val)
return <Success {...this.props} {...val} onSubmit={this.handleSubmit} />
}
Success: (val) => <Success {...this.props} {...val} onSubmit={this.handleSubmit} />
})
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ const isLimitError = (code: number | string): boolean => {
}

const Success: React.FC<InjectedFormProps<{}, Props> & Props> = (props) => {
console.log('props here:', props)

const {
cards,
crossBorderLimits,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ class EnterAmount extends PureComponent<Props> {
/>
)
}
console.log('checkout val', val)
console.log('checkout props', this.props)
return <Success {...val} {...this.props} />
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const mapStateToProps = (state: RootState) => ({
cards: selectors.components.buySell.getBSCards(state).getOrElse([]),
order: selectors.components.buySell.getBSOrder(state) as BSOrderType,
period: selectors.components.recurringBuy.getPeriod(state) as RecurringBuyPeriods,
quote: selectors.components.buySell.getBSQuote(state).getOrFail('Could not get exchange rate') // @ TODO: sean
quote: selectors.components.buySell.getBSQuote(state).getOrFail('Could not get exchange rate')
})

const mapDispatchToProps = (dispatch: Dispatch) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,6 @@ export default ({
url: nabuUrl
})

// pair
// inputAmount
// paymentMethod
// product

type getBSTransactionsType = {
currency: string
fromId?: string
Expand Down

0 comments on commit 112076a

Please sign in to comment.