Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit 1f34b02

Browse files
authored
Merge pull request #288 from daita-technologies/fix/feedback_form
fix: error parse get presign url response
2 parents 577ce7d + 71bd7af commit 1f34b02

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/FeedbackComponent/FeedbackForm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ export const FeedbackFormSlack = function ({
329329
if (onSendFail) onSendFail();
330330
resolve({ action: FeedbackFormAction.NO_ACTION });
331331
});
332+
} else {
333+
resolve({ action: FeedbackFormAction.NO_ACTION });
332334
}
333335
});
334336

src/services/authApi.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const service = new Service(axios);
5454

5555
service.register({
5656
onResponse(response: any) {
57-
if (response && typeof response.data === "string") {
57+
if (response && typeof response.data === "string" && response.data !== "") {
5858
const apiData = JSON.parse(response.data);
5959

6060
if (

0 commit comments

Comments
 (0)