fix: OfferDetail uses default currency from system settings

The useEffect checked prev.currency === "EUR" but initial default was
changed to "CZK", so the settings default was never applied.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-03-27 10:33:15 +01:00
parent 9c49015968
commit 687dcb9371

View File

@@ -356,7 +356,7 @@ export default function OfferDetail() {
setForm((prev) => ({ setForm((prev) => ({
...prev, ...prev,
currency: currency:
prev.currency === "EUR" prev.currency === "CZK"
? companySettings.default_currency || "CZK" ? companySettings.default_currency || "CZK"
: prev.currency, : prev.currency,
vat_rate: vat_rate: