From 5728de8e02326f7252edb1843d84794999d81098 Mon Sep 17 00:00:00 2001 From: eliseevmikhail Date: Mon, 21 Aug 2017 22:50:50 +0700 Subject: [PATCH 1/2] Update index.js Payload is empty string? Oops... --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 23fb706..838c11a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -22,7 +22,7 @@ export function createDuck(name, app) { type, }; - if (payload) action.payload = payload; + if (payload!==undefined) action.payload = payload; return action; }; From 4057249bd39b40da22cc63a5cb7abeeb4a96f4f6 Mon Sep 17 00:00:00 2001 From: eliseevmikhail Date: Mon, 21 Aug 2017 23:12:43 +0700 Subject: [PATCH 2/2] Update index.js --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 838c11a..91bad76 100644 --- a/lib/index.js +++ b/lib/index.js @@ -22,7 +22,7 @@ export function createDuck(name, app) { type, }; - if (payload!==undefined) action.payload = payload; + if (payload !== undefined) action.payload = payload; return action; };