mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
fix: contact extra info is missing after receiving message.
This commit is contained in:
@@ -116,7 +116,7 @@ const Ticket = () => {
|
||||
if (data.action === "update") {
|
||||
setContact(prevState => {
|
||||
if (prevState.id === data.contact?.id) {
|
||||
return data.contact;
|
||||
return { ...prevState, ...data.contact };
|
||||
}
|
||||
return prevState;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user