From 0dff110dcdb4799acbc259d95bef1078a9b98786 Mon Sep 17 00:00:00 2001 From: "aishwarya.srivastava" Date: Tue, 24 Dec 2024 21:16:14 +0530 Subject: [PATCH] NTP-14729| toast time change --- src/action/callRecordingActions.tsx | 1 + src/screens/registerPayements/utils.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/action/callRecordingActions.tsx b/src/action/callRecordingActions.tsx index 1168d294..bdadcce3 100644 --- a/src/action/callRecordingActions.tsx +++ b/src/action/callRecordingActions.tsx @@ -66,6 +66,7 @@ export const makeACallToCustomer = toast({ type: 'error', text1: response?.data?.message, + visibilityTime: 5000 }); return; } diff --git a/src/screens/registerPayements/utils.ts b/src/screens/registerPayements/utils.ts index 772a6f1e..c06fda08 100644 --- a/src/screens/registerPayements/utils.ts +++ b/src/screens/registerPayements/utils.ts @@ -1,6 +1,7 @@ import { CommunicationChannel } from './Constants'; export const getCommunicationChannelType = (channel: string) => { + if (!channel) return []; if (channel === CommunicationChannel.Both) { return [CommunicationChannel.Sms, CommunicationChannel.Whatsapp]; }