- updated page of evaluation editing for instructor;
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user