Skip to content
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

Merged
merged 9 commits into from
Feb 12, 2024
Merged

Conversation

ormiz
Copy link
Contributor

@ormiz ormiz commented Feb 4, 2024

No description provided.

phoneNumber,
channel,
demandSourceId,
switchDemandSource,
});
Copy link
Contributor

@OmerGery OmerGery Feb 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const { demandSourceId: responseDemandSourceId } = response;

Copy link
Contributor Author

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);
Copy link
Contributor

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

@ormiz ormiz changed the base branch from version_3.3.14 to master February 12, 2024 08:26
@ormiz ormiz merged commit 1587e54 into master Feb 12, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants