clean console
This commit is contained in:
@@ -11,10 +11,8 @@ const TOFIXED_DEICMAL = 1;
|
||||
export const getStepSizeOfYTicks = (maxTimeInSecond) => {
|
||||
const numOfParts = NUM_OF_PARTS_TO_SPLIT;
|
||||
const {unitToUse, timeValue} = getTimeUnitAndValueToUse(maxTimeInSecond);
|
||||
console.log('{unitToUse, timeValue}', unitToUse, timeValue); // TODO:
|
||||
let resultStepSize;
|
||||
resultStepSize = (timeValue / numOfParts);
|
||||
console.log('resultStepSize', resultStepSize); //TODO:
|
||||
|
||||
return {resultStepSize, unitToUse};
|
||||
}
|
||||
@@ -33,13 +31,11 @@ const getTimeUnitAndValueToUse = (secondToDecide) => {
|
||||
const mm = secondToDecide / minutes;
|
||||
|
||||
if (dd > 0) {
|
||||
console.log('dd > 0 && dd > 1 secondToDecide / day', secondToDecide / day); //TODO:
|
||||
return {
|
||||
unitToUse: "d",
|
||||
timeValue: secondToDecide / day,
|
||||
};
|
||||
} else if (hh > 0) {
|
||||
console.log('hh > 0 && hh > 1 secondToDecide / hour', secondToDecide / hour);
|
||||
return {
|
||||
unitToUse: "h",
|
||||
timeValue: secondToDecide / hour,
|
||||
|
||||
Reference in New Issue
Block a user