fix: improve success message in DetailContact

This commit is contained in:
2025-11-20 19:52:03 +07:00
parent f304a28493
commit c4f290bfcb

View File

@@ -37,7 +37,6 @@ const DetailContact = memo(function DetailContact(props) {
} }
}; };
const handleContactTypeChange = (value) => { const handleContactTypeChange = (value) => {
setFormData((prev) => ({ setFormData((prev) => ({
...prev, ...prev,
@@ -114,7 +113,7 @@ const DetailContact = memo(function DetailContact(props) {
NotifAlert({ NotifAlert({
icon: 'success', icon: 'success',
title: 'Berhasil', title: 'Berhasil',
message: `Data Contact berhasil ${ message: `Data Contact "${formData.name}" berhasil ${
props.actionMode === 'add' ? 'ditambahkan' : 'diperbarui' props.actionMode === 'add' ? 'ditambahkan' : 'diperbarui'
}.`, }.`,
}); });