Improve Face ID signin method UI

This commit is contained in:
Yang Luo
2024-03-17 09:54:03 +08:00
parent a19060c7cb
commit e81ba62234
5 changed files with 16 additions and 1 deletions

View File

@ -1066,7 +1066,12 @@ class LoginPage extends React.Component {
application?.signinMethods?.forEach((signinMethod) => {
const item = itemsMap.get(generateItemKey(signinMethod.name, signinMethod.rule));
if (item) {
const label = signinMethod.name === signinMethod.displayName ? item.label : signinMethod.displayName;
let label = signinMethod.name === signinMethod.displayName ? item.label : signinMethod.displayName;
if (application?.signinMethods?.length >= 4 && label === "Verification code") {
label = "Code";
}
items.push({label: label, key: item.key});
}
});