From 88d7e2f506d97ec4ee513a5d15812678b20750cb Mon Sep 17 00:00:00 2001 From: vcervellera Date: Thu, 22 Feb 2018 09:58:10 -0500 Subject: [PATCH] Emptying custom category when custom prop is cleared --- src/components/picker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/picker.js b/src/components/picker.js index 4bdd587..495c40b 100644 --- a/src/components/picker.js +++ b/src/components/picker.js @@ -61,6 +61,8 @@ export default class Picker extends React.PureComponent { }) allCategories.push(CUSTOM_CATEGORY) + } else if (CUSTOM_CATEGORY.emojis.length > 0) { + CUSTOM_CATEGORY.emojis = []; } this.hideRecent = true