chore: Fixes issue showing the CSAT error message (#6136)

Approved by Muhsin
This commit is contained in:
Sivin Varghese
2022-12-28 12:49:11 +05:30
committed by Pranav Raj S
parent 00eabe07a4
commit e446a12ebb

View File

@@ -174,7 +174,7 @@ export default {
feedback_message: this.feedbackMessage,
};
} catch (error) {
const errorMessage = error?.response?.data?.message;
const errorMessage = error?.response?.data?.error;
this.errorMessage = errorMessage || this.$t('SURVEY.API.ERROR_MESSAGE');
} finally {
this.isUpdating = false;