Skip to content

Commit

Permalink
Merge pull request #732 from alexstotsky/improve-candles-reqs
Browse files Browse the repository at this point in the history
(fix) Duplicated requests on refresh
  • Loading branch information
ezewer authored Nov 28, 2023
2 parents 2876a38 + 97a0382 commit 6f63939
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 5 additions & 3 deletions src/components/PublicTrades/PublicTrades.columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ export default function getColumns(props) {
const classes = amountStyle(amount)
return (
<Cell tooltip={getTooltipContent(type, t)}>
<span className={classes}>
{type}
</span>
<>
<span className={classes}>
{type}
</span>
</>
</Cell>
)
},
Expand Down
6 changes: 3 additions & 3 deletions src/components/Trades/Trades.columns.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment } from 'react'
import React from 'react'
import { Cell } from '@blueprintjs/table'

import { formatAmount, fixedFloat } from 'ui/utils'
Expand Down Expand Up @@ -135,13 +135,13 @@ export default function getColumns(props) {
className='bitfinex-text-align-right'
tooltip={tooltip}
>
<Fragment>
<>
{formatAmount(fee)}
{' '}
<span className='bitfinex-show-soft'>
{feeCurrency}
</span>
</Fragment>
</>
</Cell>
)
},
Expand Down
3 changes: 1 addition & 2 deletions src/state/candles/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ export function* fetchCandles({ payload: type }) {
}

function* refreshCandles() {
const params = yield select(selectors.getParams)
yield put(actions.fetchData(params))
yield put(actions.fetchData())
}

function* fetchCandlesFail({ payload }) {
Expand Down

0 comments on commit 6f63939

Please sign in to comment.