IO-1178 Resolve minor bugs.

This commit is contained in:
Patrick Fic
2021-06-01 14:36:28 -07:00
parent 74b3ceec63
commit 0108135fe9
6 changed files with 29 additions and 3 deletions

View File

@@ -157,10 +157,12 @@ export function JobLinesComponent({
render: (text, record) => (
<>
<CurrencyFormatter>{record.act_price}</CurrencyFormatter>
{record.prt_dsmk_p && record.prt_dsmk_p !== 0 && (
{record.prt_dsmk_p && record.prt_dsmk_p !== 0 ? (
<span
style={{ marginLeft: ".2rem" }}
>{`(${record.prt_dsmk_p}%)`}</span>
) : (
<></>
)}
</>
),