Skip to content

Commit 5f9aa7c

Browse files
committed
lint correction
1 parent d072f45 commit 5f9aa7c

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎src/components/d3_multi/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class ViewerMulti extends React.Component {
103103
tTrEndPts, tSfPeaks, editPeakSt, layoutSt,
104104
sweepExtentSt, isUiNoBrushSt,
105105
isHidden, cyclicvoltaSt,
106-
integationSt, mtplySt, axesUnitsSt, feature,
106+
integationSt, mtplySt, axesUnitsSt,
107107
} = this.props;
108108
this.normChange(prevProps);
109109

‎src/components/panel/cyclic_voltamery_data.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ const CyclicVoltammetryPanel = ({
106106
const formatCurrent = (y, feature, cyclicVotaSt) => {
107107
const baseY = feature && feature.yUnit ? String(feature.yUnit) : 'A';
108108
const isMilli = /mA/i.test(baseY);
109-
console.log('isMilli', isMilli);
110109
const useDensity = cyclicVotaSt && cyclicVotaSt.useCurrentDensity;
111110

112111
const rawArea = (cyclicVotaSt && cyclicVotaSt.areaValue === '' ? 1.0 : cyclicVotaSt?.areaValue) || 1.0;
@@ -123,7 +122,6 @@ const CyclicVoltammetryPanel = ({
123122

124123
if (isMilli) {
125124
val *= 1000.0;
126-
console.log('val', val);
127125
}
128126

129127
return `${parseFloat(val).toExponential(2)} ${unit}`;

‎src/sagas/saga_multi_entities.js‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ function* setCyclicVoltametry(action) { // eslint-disable-line
4444
if (typeof weAreaUnit === 'string' && weAreaUnit.length > 0) {
4545
const unit = weAreaUnit.replace('^2', '²');
4646
yield put(({ type: CYCLIC_VOLTA_METRY.SET_AREA_UNIT, payload: { unit } }));
47-
}
48-
else {
47+
} else {
4948
yield put(({ type: CYCLIC_VOLTA_METRY.SET_AREA_UNIT, payload: { unit: 'cm²' } }));
5049
}
5150
if (weAreaValue !== undefined && weAreaValue !== null) {
@@ -58,8 +57,7 @@ function* setCyclicVoltametry(action) { // eslint-disable-line
5857
}
5958
if (Number.isFinite(numeric)) {
6059
yield put(({ type: CYCLIC_VOLTA_METRY.SET_AREA_VALUE, payload: { value: numeric } }));
61-
}
62-
else {
60+
} else {
6361
yield put(({ type: CYCLIC_VOLTA_METRY.SET_AREA_VALUE, payload: { value: 1.0 } }));
6462
}
6563
}

0 commit comments

Comments
 (0)