Skip to content

Commit

Permalink
Merge pull request #1815 from akto-api-security/hotfix/fix_otp_body
Browse files Browse the repository at this point in the history
Fixing response body
  • Loading branch information
ayushaga14 authored Dec 12, 2024
2 parents cca3c35 + 77d43aa commit 959dbca
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 959dbca

Please sign in to comment.