commit 0b15b35679546b1a1b15dec3429c84098b6edd46
parent fe23834e46951259d9b8d06d4381fa75d5785f45
Author: Sebastian <sebasjm@taler-systems.com>
Date: Fri, 27 Feb 2026 20:23:43 -0300
fix #11168
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/packages/merchant-backoffice-ui/src/components/modal/index.tsx b/packages/merchant-backoffice-ui/src/components/modal/index.tsx
@@ -20,6 +20,7 @@
*/
import {
+ Amounts,
getQrCodesForPayto,
Paytos,
PaytoType,
@@ -37,7 +38,7 @@ import { DEFAULT_REQUEST_TIMEOUT } from "../../utils/constants.js";
import { Spinner } from "../exception/loading.js";
import { QR } from "../exception/QR.js";
import { doAutoFocus } from "../form/Input.js";
-import { usePreference } from "../../hooks/preference.js";
+import { useSessionContext } from "../../context/session.js";
const TALER_SCREEN_ID = 18;
@@ -432,6 +433,9 @@ export function ValidBankAccount({
? `${origin.address.substring(0, 8)}...`
: origin.displayName;
+ const { config } = useSessionContext();
+ const sendAmount = Amounts.parseOrThrow(`${config.currency}:1`);
+ payto.params["amount"] = Amounts.stringify(sendAmount);
const qrs = getQrCodesForPayto(Paytos.toFullString(payto));
const strPayto = Paytos.toFullString(payto);
const [{ showDebugInfo }] = useCommonPreferences();
@@ -672,10 +676,7 @@ export function Row({
{value}
</td>
)}
- {noCopy ? (
- // <td />
- undefined
- ) : (
+ {noCopy ? undefined : ( // <td />
<td style={{ padding: 4 }}>
<CopyButton getContent={getContent} />
</td>