Skip to content

Commit

Permalink
feat(ob): in case of deposit we do not need to show fee since we do n…
Browse files Browse the repository at this point in the history
…ot charge customers
  • Loading branch information
milan-bc committed Apr 13, 2021
1 parent 28fb717 commit 50606f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { lift } from 'ramda'

import { selectors } from 'data'
import { RootState } from 'data/rootReducer'

export const getData = state => {
export const getData = (state: RootState) => {
const defaultMethodR = selectors.components.brokerage.getAccount(state)

return lift(defaultMethod => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,6 @@ const Success = props => {
.format('dddd, MMM Do, YYYY')}
</LineItemText>
</Row>
<Row>
<Text color='grey600' size='14px' weight={500} lineHeight='21px'>
<FormattedMessage id='copy.fee' defaultMessage='Fee' />
</Text>
<LineItemText>
{/* // TODO: get this from an endpoint */}
{fiatToString({
value: 0,
unit: props.defaultMethod?.currency || ('USD' as FiatType),
digits: 0
})}
</LineItemText>
</Row>
<Row>
<Text color='grey600' size='14px' weight={500} lineHeight='21px'>
<FormattedMessage id='copy.total' defaultMessage='Total' />
Expand Down

0 comments on commit 50606f4

Please sign in to comment.