2
0

🐛 Properly display success message toast for web preview

This commit is contained in:
Baptiste Arnaud
2023-05-02 10:33:42 -04:00
parent ddb528774b
commit 94735638a6

View File

@@ -17,7 +17,8 @@ export const WebPreview = () => {
logs?.forEach((log) => { logs?.forEach((log) => {
showToast({ showToast({
icon: <WebhookIcon />, icon: <WebhookIcon />,
title: 'An error occured', status: log.status === 'error' ? 'error' : 'success',
title: log.status === 'error' ? 'An error occured' : undefined,
description: log.description, description: log.description,
details: log.details details: log.details
? { ? {