clean console

This commit is contained in:
Cindy Chang
2024-06-17 20:54:00 +08:00
parent 4c18dfd8d6
commit 3ce17fc436

View File

@@ -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,