完善不可识别Scheme的警告页面。

This commit is contained in:
徐涛
2025-01-24 15:17:07 +08:00
parent f9f984a1b4
commit 20757a789a
5 changed files with 17 additions and 6 deletions

View File

@@ -47,7 +47,7 @@ export function schemeType(
const useShort = short ?? false;
const foundType = find(SchemeTypeOptions, { value }) as SchemeTypeOption | undefined;
if (isNil(foundType)) {
return null;
return 'CORRUPTED';
}
return useShort ? foundType.short : foundType.label;
}