commit a5594e72b7503dab5c66f89be1976b6fbbc380cd
parent ce954c6ce1f16a96e54ad939d044340960558345
Author: Sebastian <sebasjm@taler-systems.com>
Date: Mon, 1 Jun 2026 15:42:17 -0300
fix #11458
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/packages/web-util/src/components/RenderAmount.tsx b/packages/web-util/src/components/RenderAmount.tsx
@@ -37,9 +37,7 @@ export function RenderAmount({
const neg = !!negative; // convert to true or false
const currentSpec = spec ?? (!specMap ? undefined : specMap[value.currency]);
- if (!currentSpec) {
- throw Error("missing currency spec");
- }
+
const { currency, normal, small } = Amounts.stringifyValueWithSpec(
value,
currentSpec,