taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 485591682b5ec472eb1ee4484c0db64989074dae
parent 74c60e6f4c1b91e987506634e40a6dd4c48480f9
Author: Sebastian <sebasjm@taler-systems.com>
Date:   Wed, 11 Feb 2026 15:52:15 -0300

missing ()

Diffstat:
Mpackages/web-util/src/components/RenderAmount.tsx | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/web-util/src/components/RenderAmount.tsx b/packages/web-util/src/components/RenderAmount.tsx @@ -36,7 +36,7 @@ export function RenderAmount({ }): VNode { const neg = !!negative; // convert to true or false - const currentSpec = spec ?? !specMap ? undefined : specMap[value.currency]; + const currentSpec = spec ?? (!specMap ? undefined : specMap[value.currency]); if (!currentSpec) { throw Error("missing currency spec"); } @@ -76,7 +76,7 @@ export function RenderAmountBulma({ }): VNode { const neg = !!negative; - const currentSpec = spec ?? !specMap ? undefined : specMap[value.currency]; + const currentSpec = spec ?? (!specMap ? undefined : specMap[value.currency]); if (!currentSpec) { throw Error("missing currency spec"); }