Commit 27d7ab9c authored by Lijiao's avatar Lijiao Committed by chicm-ms
Browse files

fix bug of default metric decimal (#1113)

parent 966041b2
...@@ -28,12 +28,11 @@ class IntermediateVal extends React.Component<IntermediateValProps, {}> { ...@@ -28,12 +28,11 @@ class IntermediateVal extends React.Component<IntermediateValProps, {}> {
if (wei > 6) { if (wei > 6) {
result = `${lastVal.toFixed(6)}`; result = `${lastVal.toFixed(6)}`;
} }
if (status === 'SUCCEEDED') { }
result = `${lastVal.toFixed(6)} (FINAL)`; if (status === 'SUCCEEDED') {
} else { result = `${result} (FINAL)`;
result = `${lastVal.toFixed(6)} (LATEST)`; } else {
} result = `${result} (LATEST)`;
} }
} else { } else {
result = '--'; result = '--';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment