Skip to content

Commit

Permalink
chore: render unknown channel type
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Apr 21, 2024
1 parent e5b3e37 commit d87c55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/default/src/components/ChannelsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function renderType(type) {
}
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) {
Expand Down

0 comments on commit d87c55f

Please sign in to comment.