-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aut 18615 switch demand source #807
Conversation
phoneNumber, | ||
channel, | ||
demandSourceId, | ||
switchDemandSource, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { demandSourceId: responseDemandSourceId } = response;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it's selectedDemandSourceId, so no need to rename
if (!Config.ALLOWED_DEMAND_SOURCE_IDS) { | ||
return []; | ||
} | ||
const allowedDemandSourceIds = JSON.parse(Config.ALLOWED_DEMAND_SOURCE_IDS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add try catch to the JSON parse + mixpanel event.
As it ui only logic , it will help us to debug if the Config.ALLOWED is invalid json or undefined
No description provided.