fix: status code check on feedback submit

This commit is contained in:
Christy Jacob committed 2023-03-23 12:39:02 +00:00
1 parent cc7398c413
commit 12afcba1ec
2 files changed
+10 -1

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
tasks:
- init: npm install && npm run build
command: npm run dev
+1 -1
View File
@@ -74,7 +74,7 @@ function createFeedbackStore() {
customFields: value ? [{ id: '40655', value }] : undefined
})
});
if (response.status !== 200) {
if (response.status >= 400) {
throw new Error('Failed to submit feedback');
}
}