From d8e8a8e4e9da7625d2571f691ab726e1750280ef Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 30 Jul 2021 09:45:59 -0700 Subject: [PATCH] Resolve break with Phone Package. --- client/src/redux/messaging/messaging.sagas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/redux/messaging/messaging.sagas.js b/client/src/redux/messaging/messaging.sagas.js index 8a6a9f10e..40b1f6e53 100644 --- a/client/src/redux/messaging/messaging.sagas.js +++ b/client/src/redux/messaging/messaging.sagas.js @@ -39,7 +39,7 @@ export function* openChatByPhone({ payload }) { data: { conversations }, } = yield client.query({ query: CONVERSATION_ID_BY_PHONE, - variables: { phone: phone(phone_num)[0] }, + variables: { phone: phone(phone_num).phoneNumber }, fetchPolicy: "network-only", }); @@ -53,7 +53,7 @@ export function* openChatByPhone({ payload }) { variables: { conversation: [ { - phone_num: phone(phone_num)[0], + phone_num: phone(phone_num).phoneNumber, bodyshopid: bodyshop.id, job_conversations: jobid ? { data: { jobid: jobid } } : null, },