diff --git a/src/index.js b/src/index.js index dab88c6..3b169e4 100644 --- a/src/index.js +++ b/src/index.js @@ -70,7 +70,7 @@ function createLogger(options = {}) { const formattedTime = formatTime(time); const titleCSS = colors.title ? `color: ${colors.title(formattedAction)};` : null; - const title = `action ${formattedAction.type}${timestamp ? formattedTime : ``}${duration ? ` in ${took.toFixed(2)} ms` : ``}`; + const title = `action ${String(formattedAction.type)}${timestamp ? formattedTime : ``}${duration ? ` in ${took.toFixed(2)} ms` : ``}`; // render try {