From 60443f481ef6f46c8293ce1fac5570e8abf37a98 Mon Sep 17 00:00:00 2001 From: Alfred Melch Date: Sat, 1 Feb 2020 21:23:56 +0100 Subject: [PATCH] fix warn --- lib/potent-reducer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/potent-reducer.js b/lib/potent-reducer.js index 1567712..77b4851 100644 --- a/lib/potent-reducer.js +++ b/lib/potent-reducer.js @@ -91,6 +91,7 @@ export const createStore = options => { } function assertSelectedExists(value) { + if (typeof value !== 'undefined') return console.warn(`A selector returned undefined. This indicates that you tried to access a state property that does not exist. To turn these messages off use {"warnOnUndefinedSelect": false} in options`)