完善不可识别Scheme的警告页面。
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user