mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +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") {
|
if (data.action === "update") {
|
||||||
setContact(prevState => {
|
setContact(prevState => {
|
||||||
if (prevState.id === data.contact?.id) {
|
if (prevState.id === data.contact?.id) {
|
||||||
return data.contact;
|
return { ...prevState, ...data.contact };
|
||||||
}
|
}
|
||||||
return prevState;
|
return prevState;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user