fix: Wrong toast message on creation of a Live Chat campaign (#10919)
This commit is contained in:
@@ -21,11 +21,11 @@ const addCampaign = async campaignDetails => {
|
|||||||
type: CAMPAIGN_TYPES.ONGOING,
|
type: CAMPAIGN_TYPES.ONGOING,
|
||||||
});
|
});
|
||||||
|
|
||||||
useAlert(t('CAMPAIGN.SMS.CREATE.FORM.API.SUCCESS_MESSAGE'));
|
useAlert(t('CAMPAIGN.LIVE_CHAT.CREATE.FORM.API.SUCCESS_MESSAGE'));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMessage =
|
const errorMessage =
|
||||||
error?.response?.message ||
|
error?.response?.message ||
|
||||||
t('CAMPAIGN.SMS.CREATE.FORM.API.ERROR_MESSAGE');
|
t('CAMPAIGN.LIVE_CHAT.CREATE.FORM.API.ERROR_MESSAGE');
|
||||||
useAlert(errorMessage);
|
useAlert(errorMessage);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user