Skip to content

Commit bec2fee

Browse files
committed
rename variable trimedValue to trimmedValue
1 parent db8068a commit bec2fee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/server/webui/src/components/SettingDialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ export default function SettingDialog({
296296
return;
297297
}
298298
} else if (mustBeNumeric) {
299-
const trimedValue = value.toString().trim();
300-
const numVal = Number(trimedValue);
301-
if (isNaN(numVal) || !isNumeric(numVal) || trimedValue.length === 0) {
299+
const trimmedValue = value.toString().trim();
300+
const numVal = Number(trimmedValue);
301+
if (isNaN(numVal) || !isNumeric(numVal) || trimmedValue.length === 0) {
302302
alert(`Value for ${key} must be numeric`);
303303
return;
304304
}

0 commit comments

Comments
 (0)