diff --git a/src/index.js b/src/index.js index d5be3f8..973b9dc 100644 --- a/src/index.js +++ b/src/index.js @@ -71,7 +71,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 {