Price conversions break when using a non-US number format #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The issue appears to be that calls to
Decimal(string:)do not respect the current locale's number formatting, so a number like123,45in a German regional locale has the,45decimals dropped. Here is an example, but all call sites that use this method need to be fixed:482e50b6ba/Sources/SatsPrice/SatsViewModel.swift (L351)