feat: all coins on commissions

This commit is contained in:
Taranto 2020-11-05 17:06:16 +00:00 committed by Josh Harvey
parent 913d281798
commit 9595afb63a
12 changed files with 258 additions and 152 deletions

View file

@ -195,10 +195,13 @@ const ETable = ({
)}
{innerData.map((it, idx) => {
const nextElement = innerData[idx + 1]
const canGroup = !!groupBy && nextElement
const isFunction = R.type(groupBy) === 'Function'
const groupFunction = isFunction ? groupBy : R.prop(groupBy)
const isLastOfGroup =
groupBy &&
nextElement &&
nextElement[groupBy] !== it[groupBy]
canGroup && groupFunction(it) !== groupFunction(nextElement)
return (
<Formik