Skip to content

Commit

Permalink
fix: pass formattedAction instead of plain action; chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Rodionov committed Dec 10, 2015
1 parent 5d9738b commit f144541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-logger",
"version": "2.2.0",
"version": "2.2.1",
"description": "Logger for redux",
"main": "lib/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function createLogger(options = {}) {
const isCollapsed = (typeof collapsed === `function`) ? collapsed(getState, action) : collapsed;

const formattedTime = formatTime(time);
const titleCSS = colors.title ? `color: ${colors.title(action)};` : null;
const titleCSS = colors.title ? `color: ${colors.title(formattedAction)};` : null;
const title = `action ${formattedAction.type}${timestamp ? formattedTime : ``}${duration ? ` in ${took.toFixed(2)} ms` : ``}`;

// render
Expand Down

0 comments on commit f144541

Please sign in to comment.