Fix minor formatting and naming issues

This commit is contained in:
Gimle Larpes 2025-05-31 17:00:22 +02:00
parent c260af5023
commit 2a368d46fc
2 changed files with 3 additions and 2 deletions

View file

@ -448,6 +448,7 @@ export function RoomTimeline({
const [encUrlPreview] = useSetting(settingsAtom, 'encUrlPreview');
const showUrlPreview = room.hasEncryptionStateEvent() ? encUrlPreview : urlPreview;
const [showHiddenEvents] = useSetting(settingsAtom, 'showHiddenEvents');
const [hour24Clock] = useSetting(settingsAtom, 'hour24Clock');
const [dateFormatString] = useSetting(settingsAtom, 'dateFormatString');

View file

@ -358,8 +358,8 @@ function CustomDateFormat({ dateFormatString, setDateFormatString }: CustomDateF
}, [dateFormatString]);
const handleChange: ChangeEventHandler<HTMLInputElement> = (evt) => {
const name = evt.currentTarget.value;
setDateFormatCustom(name);
const format = evt.currentTarget.value;
setDateFormatCustom(format);
};
const handleReset = () => {