Emptying custom category when custom prop is cleared

release
vcervellera 2018-02-22 09:58:10 -05:00
parent 1c1fe761b6
commit 88d7e2f506
1 changed files with 2 additions and 0 deletions

View File

@ -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