fix: sonarcloud warning and code cleanup

This commit is contained in:
canove
2021-01-15 07:04:01 -03:00
parent 454fd6ce08
commit a0e6b7b2c7
11 changed files with 40 additions and 45 deletions

View File

@@ -100,8 +100,8 @@ const NewTicketModal = ({ modalOpen, onClose }) => {
handleSaveTicket(contact.id);
};
const createAddContactOption = (options, params) => {
const filtered = filter(options, params);
const createAddContactOption = (filterOptions, params) => {
const filtered = filter(filterOptions, params);
if (params.inputValue !== "" && !loading && searchParam.length >= 3) {
filtered.push({