messages: fix tsc error

This commit is contained in:
James Acklin 2021-05-31 20:10:18 -04:00
parent 1f6a216f28
commit f078b843e4

View File

@ -55,7 +55,7 @@ export function NewChannel(props: NewChannelProps): ReactElement {
const channelName = (values) => {
if (values.name)
return value.name;
return values.name;
if (!values.name && workspace?.type === 'messages') {
const joinedShips = values.ships
.filter(Boolean)