From 98142484f036c95f2093d770305a8514fc6f2401 Mon Sep 17 00:00:00 2001 From: Yaroslav Kosterin Date: Mon, 19 Jan 2026 14:38:00 +0200 Subject: [PATCH] fix prefill zero values --- .../webshop/components/pages/funds-request/FundRequest.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/src/webshop/components/pages/funds-request/FundRequest.tsx b/react/src/webshop/components/pages/funds-request/FundRequest.tsx index 3de6b63c3..aeb4f2ef8 100644 --- a/react/src/webshop/components/pages/funds-request/FundRequest.tsx +++ b/react/src/webshop/components/pages/funds-request/FundRequest.tsx @@ -557,7 +557,7 @@ export default function FundRequest() { (item) => item.record_type_key === criterion.record_type_key, )[0]; - criterion.input_value = prefillItem?.value || criterion.input_value; + criterion.input_value = prefillItem ? prefillItem.value : criterion.input_value; } return criterion; @@ -685,7 +685,7 @@ export default function FundRequest() { (prefill) => prefill.record_type_key === item.record_type_key, )[0]; - item.input_value = prefillItem?.value || item.input_value; + item.input_value = prefillItem ? prefillItem.value : item.input_value; } if (!shouldRequestRecord(item) && item.input_value != defaultValue) {