Merge branch 'master' into feature/2.0-scenarios

This commit is contained in:
Cooldude2606 authored and GitHub committed 2024-11-22 13:36:33 +00:00
commit e4f0ab1e8f
27 files changed
+285 -59

No files matched your search

@@ -44,7 +44,7 @@ function renderInput(inputComponents: Record<string, InputComponent>, def: lib.F
}
if (def.type === "string") {
if (def.credential) {
return <Input.Password autoComplete={def.autoComplete} disabled={readonly} />;
return <Input.Password autoComplete={def.autoComplete ?? "new-password"} disabled={readonly} />;
}
return <Input autoComplete={def.autoComplete} disabled={readonly} />;
}
+1 -1
View File
@@ -73,7 +73,7 @@ export function sortLastSeen(userA: lib.User, userB: lib.User, instanceIdA?: num
export function useUser(name?: string) {
const [users, synced] = useUsers();
return [name !== undefined ? users.get(name) : undefined, synced] as const;
return [name !== undefined ? users.get(name.toLowerCase()) : undefined, synced] as const;
}
export function useUsers() {