Skip to content

Commit

Permalink
Merge pull request #2261 from stakwork/feature/add-stak-messages
Browse files Browse the repository at this point in the history
feat: destructure message
  • Loading branch information
Rassl authored Sep 30, 2024
2 parents 7c42fe0 + d07531e commit 88684a8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,15 @@ export const App = () => {
return
}

SuccessNotify(data.message)
const message = data?.message?.message

setRunningProjectMessages(data.message)
if (message) {
SuccessNotify(message)

console.log(data)
setRunningProjectMessages(message)

console.log(message)

Check warning on line 286 in src/components/App/index.tsx

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
}

// Handle the message from the server here
}
Expand Down

0 comments on commit 88684a8

Please sign in to comment.