From 8f661f278080d31d020efb889ae6ba3f23b86963 Mon Sep 17 00:00:00 2001 From: Anant Jain <62471433+anantjain45823@users.noreply.github.com> Date: Mon, 30 Sep 2024 12:46:55 +0530 Subject: [PATCH] chore: fix src/v0/destinations/amazon_audience/utils.js --- src/v0/destinations/amazon_audience/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v0/destinations/amazon_audience/utils.js b/src/v0/destinations/amazon_audience/utils.js index e8c9030894..64a7e35f39 100644 --- a/src/v0/destinations/amazon_audience/utils.js +++ b/src/v0/destinations/amazon_audience/utils.js @@ -140,8 +140,8 @@ const getUserDetails = (fields, config) => { } if (phone_number) { const updated_phone_number = phone(phone_number); - if (updated_phone_number.isValid()) { - user.phone = enableHash ? sha256(updated_phone_number.phoneNumber()) : updated_phone_number.phoneNumber(); + if (updated_phone_number.isValid) { + user.phone = enableHash ? sha256(updated_phone_number.phoneNumber) : updated_phone_number.phoneNumber; } } if (state) {