🍏
if (isDesignSetWineExperience && recipeSlugFromUrl) {
......
} else if (isDesignSetTasteAdvisor) {
if (characterIdFromUrl || characterIdFromRedux) {
getRetailerCharacterInfo(
characterIdFromUrl || characterIdFromRedux,
retailerSlugFromUrl || retailerSlugFromRedux,
).then(data => {
if (data !== undefined) {
setCharacterRedirectUrl(data.redirect_url || '');
} else {
history.push(createFrontendRetailerUrl(frontendUrls.urlErrorNotFound));
}
});
} else {
history.push(createFrontendRetailerUrl(frontendUrls.urlErrorNotFound));
}
} else {
getRetailerCharacterInfo(
characterIdFromUrl || characterIdFromRedux,
retailerSlugFromUrl || retailerSlugFromRedux,
).then(data => {
if (data) {
setCharacterRedirectUrl(data.redirect_url || '');
}
});
}

