Skip to content

Commit

Permalink
🐛 Properly display success message toast for web preview
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 2, 2023
1 parent ddb5287 commit 9473563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/builder/src/features/preview/components/WebPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export const WebPreview = () => {
logs?.forEach((log) => {
showToast({
icon: <WebhookIcon />,
title: 'An error occured',
status: log.status === 'error' ? 'error' : 'success',
title: log.status === 'error' ? 'An error occured' : undefined,
description: log.description,
details: log.details
? {
Expand Down

0 comments on commit 9473563

Please sign in to comment.