Skip to content

Commit

Permalink
fix cell classes
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDudley committed Feb 18, 2025
1 parent 7d3b2ac commit e9f3cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front_end/src/Components/TableCell/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ const TableCell = ({ rowIndex, cellId, cellKey, sheetUpdating }) => {

if (!isEditable) classes.push("not-editable");
if (isRowSelected) classes.push("selected");
isActual ? classes.push("is-actual") : classes.push("is-forecast");
if (!cell) return classes.join(" ");

if (cell && cell.amount < 0) classes.push("negative");
if (wasEdited()) classes.push("edited");
isActual ? classes.push("is-actual") : classes.push("is-forecast");

return classes.join(" ");
};
Expand Down

0 comments on commit e9f3cbf

Please sign in to comment.