change 'default' to 'isDefault' whatsapp field on frontend

This commit is contained in:
canove
2020-09-20 11:12:32 -03:00
parent aa6f116514
commit 0f0d9470c5
5 changed files with 39 additions and 55 deletions

View File

@@ -60,7 +60,7 @@ const WhatsAppModal = ({ open, onClose, whatsAppId }) => {
const classes = useStyles();
const initialState = {
name: "",
default: false,
isDefault: false,
};
const [whatsApp, setWhatsApp] = useState(initialState);