Skip to content

Commit

Permalink
chore: Better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed May 9, 2024
1 parent 32a60db commit 8a45c30
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions debug/src/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,8 @@ export function initDebug() {
} else if (type === 'a' || type === 'button') {
if (getDomChildren(vnode).find(childType => childType === type)) {
console.error(
'Improper nesting of interactive content. Your <' +
type +
'> should not have ' +
'other ' +
(type === 'a' ? 'anchor' : 'button') +
`Improper nesting of interactive content. Your <${type}>` +
` should not have other ${type === 'a' ? 'anchor' : 'button'}` +
' tags as child-elements.' +
serializeVNode(vnode) +
`\n\n${getOwnerStack(vnode)}`
Expand Down

0 comments on commit 8a45c30

Please sign in to comment.