From b856c51389c64b3e193da985b2dc89994746342b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 21 Jan 2026 08:11:36 +0100 Subject: [PATCH] chore: remove debug logging in toast controller --- assets/controllers/toast_controller.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/assets/controllers/toast_controller.js b/assets/controllers/toast_controller.js index c7b7319..d2328c6 100644 --- a/assets/controllers/toast_controller.js +++ b/assets/controllers/toast_controller.js @@ -24,24 +24,15 @@ export default class extends Controller { } handleNotifications(event) { - console.log('[VOUCHER DEBUG] showNotifications event received:', event) - console.log('[VOUCHER DEBUG] event.detail:', event.detail) - // HTMX wraps the trigger value in an object with 'value' and 'elt' properties // event.detail.value contains the actual array from the HX-Trigger header const notifications = event.detail?.value || event.detail || [] - console.log('[VOUCHER DEBUG] notifications array:', notifications) - console.log('[VOUCHER DEBUG] notifications count:', Array.isArray(notifications) ? notifications.length : 'not an array') - if (Array.isArray(notifications)) { notifications.forEach((notification, index) => { - console.log(`[VOUCHER DEBUG] Processing notification ${index}:`, notification) const className = this.getClassForType(notification.type) this.showToast(notification.message, className) }) - } else { - console.error('[VOUCHER DEBUG] Notifications is not an array:', notifications) } } @@ -66,4 +57,4 @@ export default class extends Controller { return typeMap[type] || 'toastify--info' } -} \ No newline at end of file +}