chore: render unknown channel type

This commit is contained in:
JustSong 2024-04-21 18:54:35 +08:00
parent e5b3e37c46
commit d87c55f542

View File

@ -33,7 +33,7 @@ function renderType(type) {
} }
type2label[0] = { value: 0, text: '未知类型', color: 'grey' }; type2label[0] = { value: 0, text: '未知类型', color: 'grey' };
} }
return <Label basic color={type2label[type]?.color}>{type2label[type]?.text}</Label>; return <Label basic color={type2label[type]?.color}>{type2label[type] ? type2label[type].text : type}</Label>;
} }
function renderBalance(type, balance) { function renderBalance(type, balance) {