Skip to content

Commit

Permalink
Fixing response body
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark2307 committed Dec 12, 2024
1 parent cca3c35 commit 77d43aa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ function LoginForm({ step, setSteps }) {
responseBody = testResponse.body
}

if(typeof responseBody === 'object' && Object.keys(responseBody).length > 0){
responseBody = JSON.stringify(responseBody)
}

setSteps(prev => prev.map((s) => s.id === step.id ? {
...s,
testResponse: {
Expand Down

0 comments on commit 77d43aa

Please sign in to comment.