From daa26d289b26b47348352e4e8bae59ffb7b1a3c3 Mon Sep 17 00:00:00 2001 From: sindhuba <122321535+sindhuba@users.noreply.github.com> Date: Wed, 9 Aug 2023 09:28:25 -0700 Subject: [PATCH] Fix sendMessage in DE (#1570) * Fix issue in sendMessage in DE * Run npm format --- src/Explorer/Explorer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index e1835da4d..824be1ee2 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -283,18 +283,18 @@ export default class Explorer { isAccountNewerThanThresholdInMs(userContext.databaseAccount?.systemData?.createdAt || "", ONE_DAY_IN_MS) && this.getRandomInt(100) < 25 ) { - sendMessage(MessageTypes.DisplayNPSSurvey); + sendMessage({ type: MessageTypes.DisplayNPSSurvey }); } } else { // An existing account is lesser than 90 days old. For existing account show to random 10 % of users in Data Explorer. if (isAccountNewerThanNinetyDays) { if (this.getRandomInt(100) < 10) { - sendMessage(MessageTypes.DisplayNPSSurvey); + sendMessage({ type: MessageTypes.DisplayNPSSurvey }); } } else { // An existing account is greater than 90 days. For existing account show to random 25 % of users in Data Explorer. if (this.getRandomInt(100) < 25) { - sendMessage(MessageTypes.DisplayNPSSurvey); + sendMessage({ type: MessageTypes.DisplayNPSSurvey }); } } }