commit f3d0dc8346246974612e240afe083e96b9980dd6
parent a796e980e096e5be49a105325151fb7f2d076056
Author: Florian Dold <florian@dold.me>
Date: Tue, 22 Jul 2025 00:57:56 +0200
-fix FTBFS
Diffstat:
2 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/packages/aml-backoffice-ui/src/pages/AccountDetails.tsx b/packages/aml-backoffice-ui/src/pages/AccountDetails.tsx
@@ -45,22 +45,29 @@ import { BANK_RULES, WALLET_RULES } from "./decision/Rules.js";
const TALER_SCREEN_ID = 116;
-export function ShowProperties(props: { properties?: AccountProperties }) {
+export function ShowProperties(props: {
+ properties?: AccountProperties;
+}): VNode {
const { properties } = props;
const keys = Object.keys(properties ?? {});
if (!properties || keys.length == 0) {
return <span>No properties defined for this account.</span>;
}
- return keys.map((x) => {
- if (properties[x] == null) {
- return null;
- }
- return (
- <p>
- {x}: {properties[x]}
- </p>
- );
- });
+ return (
+ <>
+ {keys.map((x) => {
+ if (properties[x] == null) {
+ return null;
+ }
+ return (
+ <p>
+ {x}: {properties[x]}
+ </p>
+ );
+ })}
+ ;
+ </>
+ );
}
export function AccountDetails({
diff --git a/packages/web-util/src/forms/gana/accept-tos.stories.tsx b/packages/web-util/src/forms/gana/accept-tos.stories.tsx
@@ -27,18 +27,12 @@ import { acceptTos } from "./accept-tos.js";
setupI18n("en", {});
export const EmptyForm = tests.createExample(DefaultForm, {
- initial: {
- // [TalerFormAttributes.DOWNLOADED_TERMS_OF_SERVICE]: false,
- // [TalerFormAttributes.ACCEPTED_TERMS_OF_SERVICE]: false,
- },
- design: acceptTos(
- i18n,
- {
- tos_url: "https://exchange.demo.taler.net/terms",
- provider_name: "Taler Operations AG",
- tosVersion: "v1",
- },
- ),
+ initial: {},
+ design: acceptTos(i18n, {
+ tos_url: "https://exchange.demo.taler.net/terms",
+ provider_name: "Taler Operations AG",
+ tos_version: "v1",
+ }),
});
export default { title: "accept tos" };