From 47564a722ef9cf3caadf1a410067520391013a12 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 16 Feb 2026 15:41:24 +0100 Subject: [PATCH] UI - Watch overview - Restock price, validate number before output --- .../blueprint/watchlist/templates/watch-overview.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/changedetectionio/blueprint/watchlist/templates/watch-overview.html b/changedetectionio/blueprint/watchlist/templates/watch-overview.html index 133f2a06f..e6ecab17f 100644 --- a/changedetectionio/blueprint/watchlist/templates/watch-overview.html +++ b/changedetectionio/blueprint/watchlist/templates/watch-overview.html @@ -304,12 +304,13 @@ html[data-darkmode="true"] .watch-tag-list.tag-{{ class_name }} { {%- endif -%} - {%- if watch.get('restock') and watch['restock']['price'] != None -%} - {%- if watch['restock']['price'] != None -%} + {%- if watch.get('restock') and watch['restock'].get('price') -%} + {%- if watch['restock']['price'] is number -%} {{ watch['restock']['price']|format_number_locale if watch['restock'].get('price') else '' }} {{ watch['restock'].get('currency','') }} - {%- endif -%} + {%- else -%} + {%- endif -%} {%- elif not watch.has_restock_info -%} {{ _('No information') }} {%- endif -%}