- updated page of evaluation editing for instructor;

This commit is contained in:
Vitalii Kiiko
2025-02-07 14:45:39 +01:00
parent 3588f52787
commit 948d511189
2 changed files with 46 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import { head, isNil, pathOr } from 'ramda';
import { head, is, isNil, pathOr } from 'ramda';
import getNumberFormatted from '../../../../../../../helpers/getNumberFormatted';
const LastRowCell = ({columnId, lastRowCfg, columnMeta = {}, tableValue = []}) => {
@@ -9,7 +9,7 @@ const LastRowCell = ({columnId, lastRowCfg, columnMeta = {}, tableValue = []}) =
cellValue = pathOr(0, ['total'], tableValue);
}
return <td>{getNumberFormatted(cellValue)}</td>;
return <td>{is(Number, cellValue) ? getNumberFormatted(cellValue) : cellValue}</td>;
};
export default LastRowCell;