mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Undefined graph labels fix (#1283)
* get format price * added price format fix, removed logs * remove all commas from the price string * space fixes * fix * fix locale in graph, undo price fix Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com> Co-authored-by: mihaisc <mihai@oceanprotocol.com>
This commit is contained in:
parent
8c0f22fc35
commit
eb3ddcee90
@ -25,7 +25,7 @@ export function getOptions(
|
|||||||
borderColor: isDarkMode ? `#41474e` : `#e2e2e2`,
|
borderColor: isDarkMode ? `#41474e` : `#e2e2e2`,
|
||||||
callbacks: {
|
callbacks: {
|
||||||
label: (tooltipItem: TooltipItem<any>) =>
|
label: (tooltipItem: TooltipItem<any>) =>
|
||||||
`${formatPrice(`${tooltipItem.formattedValue}`, locale)} ${symbol}`
|
`${tooltipItem.formattedValue} ${symbol}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user