Compare commits

...
Author SHA1 Message Date
Matthew Russell 3f538fc330 fix: missing styles for tooltip in positions table 2023-09-13 13:30:03 -07:00
+4 -2
View File
@@ -364,7 +364,7 @@ export const PositionsTable = ({
DocsLinks?.LOSS_SOCIALIZATION ?? '';
if (!args.data) {
return <>-</>;
return null;
}
const losses = parseInt(
@@ -373,7 +373,9 @@ export const PositionsTable = ({
if (losses <= 0) {
// eslint-disable-next-line react/jsx-no-useless-fragment
return <>{args.valueFormatted}</>;
return (
<TooltipCellComponent {...args} value={args.valueFormatted} />
);
}
const lossesFormatted = addDecimalsFormatNumber(