Fix typos in error messages, constants, and UI labels

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 08:55:33 +08:00
parent 3693446d1b
commit 589783d481
6 changed files with 8 additions and 8 deletions

View File

@@ -310,7 +310,7 @@ export async function uploadFailedFirst(failureType, failureMsg, failureLoc) {
value = 'File size exceeds 90MB.';
break;
case 'encoding':
value = `Please use UFT-8 for character encoding: (Row #${failureLoc})`;
value = `Please use UTF-8 for character encoding: (Row #${failureLoc})`;
break;
case 'insufficient_columns':
value = 'Need at least five columns of data.';
@@ -356,7 +356,7 @@ export async function uploadFailedSecond(detail) {
manySrt = 'There are more errors.';
break;
case 'unrecognized':
content = `<li>Data unregnizable in Status Column: (Row #${i.loc[1]}, "${escapeHtml(i.input)}")</li>`;
content = `<li>Data unrecognizable in Status Column: (Row #${i.loc[1]}, "${escapeHtml(i.input)}")</li>`;
break;
case 'malformed':
content = `<li>Data malformed in Timestamp Column: (Row #${i.loc[1]}, "${escapeHtml(i.input)}")</li>`;

View File

@@ -9,7 +9,7 @@
import moment from 'moment';
/** @constant {number} Number of decimal places for formatted time values. */
const TOFIXED_DEICMAL = 1;
const TOFIXED_DECIMAL = 1;
/**
* Calculates the step size and time unit for evenly spaced Y-axis ticks.
@@ -78,7 +78,7 @@ const getTimeUnitAndValueToUse = (secondToDecide) => {
export function getYTicksByIndex(stepSize, index, unitToUse){
const rawStepsizeMultIndex = (stepSize * index).toString();
const shortenStepsizeMultIndex = rawStepsizeMultIndex.substring(
0, rawStepsizeMultIndex.indexOf('.') + 1 + TOFIXED_DEICMAL);
0, rawStepsizeMultIndex.indexOf('.') + 1 + TOFIXED_DECIMAL);
return `${shortenStepsizeMultIndex}${unitToUse}`;
};