When adding country or sector allocations for a security (e.g., VWCE), there is an issue with how the application handles decimal values or values below 1%.
Steps to reproduce:
• Go to a security's allocation settings (Country or Sector).
• Attempt to enter a small percentage, such as 0.45%.
• Save and observe the result in the UI.
Expected behavior:
The value should be displayed correctly as 0.45%.
Actual behavior:
• Entering 0.45% is displayed as 45%.
• Entering 1% is displayed as 100%.
Technical Observations:
I have tried to manually bypass the UI by inserting the correct decimal values directly into the database. Even though the values are stored correctly in the database 0.37, the web interface still scales them incorrectly, showing 0.37% as 37%. This suggests the issue lies in the frontend parsing or rendering logic.
Environment:
• Deployment: Self-hosted using Docker.
• Version: Latest (Web version).