From 32a52064532a5567bb77b834c098d766548ab799 Mon Sep 17 00:00:00 2001 From: Sam Kelleher Date: Mon, 29 May 2017 12:14:05 +0100 Subject: [PATCH] Flip wrong way round flag. --- src/components/picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/picker.js b/src/components/picker.js index cba5c4e..32f0bfb 100644 --- a/src/components/picker.js +++ b/src/components/picker.js @@ -102,7 +102,7 @@ export default class Picker extends React.Component { let includeRecent = props.include && props.include.length ? props.include.indexOf('recent') > -1 : true let excludeRecent = props.exclude && props.exclude.length ? props.exclude.indexOf('recent') > -1 : false - if (includeRecent && !excludeRecent) { + if (!includeRecent && excludeRecent) { this.hideRecent = true this.categories.unshift(RECENT_CATEGORY) }