Files
aurum/frontend
ZProger 7deacd2a98 fix: quantity/price fields padded with zeros when editing a transaction
The API returns quantity and price_per_unit at their full Numeric(38,18)
scale (e.g. "3.000000000000000000") since crypto quantities need up to 18
decimal places for wei-level amounts — correct for computation, but the
edit form pre-filled these raw strings straight into the inputs.

Added trimTrailingZeros() to lib/format.ts and used it when pre-filling
CryptoTransactionModal in edit mode. Trims the string directly rather than
round-tripping through Number(), which would risk rounding a genuine
18-decimal-place amount through floating point instead of just stripping
padding.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01855PiW5Wd8n4aRW4n9kByY
2026-08-30 05:10:29 +03:00
..
2026-08-16 18:39:52 +03:00
2026-08-16 18:39:52 +03:00
2026-08-16 18:39:52 +03:00
2026-08-16 18:39:52 +03:00
2026-08-16 18:39:52 +03:00
2026-08-16 18:39:52 +03:00
2026-08-16 18:39:52 +03:00
2026-08-16 18:39:52 +03:00