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 GitHub
parent 3e91765472
commit 98c289dc3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;