Skip to content

Commit

Permalink
🐛 (webhook) Fix condition to check for parsed webhook data
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 24, 2024
1 parent 03e881b commit 7c0d349
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const WebhookSettings = ({
onMessage(e) {
try {
const parsedData = JSON.parse(e.data);
if (Object.keys(parsedData.data).length > 0) {
if (Object.keys(parsedData).length > 0) {
setReceivedData(JSON.stringify(parsedData, null, 2));
setResponseKeys(getDeepKeys(parsedData));
}
Expand Down

0 comments on commit 7c0d349

Please sign in to comment.