Skip to content
Snippets Groups Projects
Unverified Commit 96cde67b authored by woxtu's avatar woxtu Committed by GitHub
Browse files

Use nullish coalescing operator (#11294)

parent 54537101
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,7 @@ export default function(props: {
case 'mention': {
return [h(MkMention, {
key: Math.random(),
host: (token.props.host == null && props.author && props.author.host != null ? props.author.host : token.props.host) || host,
host: (token.props.host == null && props.author && props.author.host != null ? props.author.host : token.props.host) ?? host,
username: token.props.username,
})];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment