fix: tooltip key in tx bar chart (#491)

Co-authored-by: Anthony Potdevin <31413433+apotdevin@users.noreply.github.com>
This commit is contained in:
Abhishek Shandilya 2022-12-02 09:07:12 -05:00 committed by GitHub
parent c693fa1d09
commit ded19a1d36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ export const TransactionsGraph: FC<TransactionsGraphProps> = ({
priceLabel={type !== 'amount'} priceLabel={type !== 'amount'}
data={finalArray.map(f => { data={finalArray.map(f => {
return { return {
Invoices: f?.[type] || 0, [showPay ? 'Payments' : 'Invoices']: f?.[type] || 0,
date: f.date, date: f.date,
}; };
})} })}