From 806b1c374fcebc52f4fa04b4630f3dc7abf943ea Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Sat, 7 Mar 2026 20:35:00 +0200 Subject: [PATCH] fix(currency): use currency_code instead of id in CurrencySelectList The CurrencySelectList component was using 'id' as the valueAccessor, which caused the component to return the numeric currency ID (e.g., 1007) instead of the currency code string (e.g., 'THB'). This fix changes the valueAccessor from 'id' to 'currency_code' so that the currency code string is correctly sent to the backend, which expects @IsString() for the currencyCode field. Fixes #1025 --- .../webapp/src/components/Currencies/CurrencySelectList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/src/components/Currencies/CurrencySelectList.tsx b/packages/webapp/src/components/Currencies/CurrencySelectList.tsx index 10c4bcb08..96739f954 100644 --- a/packages/webapp/src/components/Currencies/CurrencySelectList.tsx +++ b/packages/webapp/src/components/Currencies/CurrencySelectList.tsx @@ -19,7 +19,7 @@ export function CurrencySelectList({ name={name} items={items} textAccessor={'currency_code'} - valueAccessor={'id'} + valueAccessor={'currency_code'} placeholder={placeholder} popoverProps={{ minimal: true, usePortal: true, inline: false }} {...props}