taler-typescript-core

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

commit e027520a3703ef086401492a92bb47f9d6aab788
parent 55ea189dec5044a3dfa6b521056fff165b7510a0
Author: Sebastian <sebasjm@gmail.com>
Date:   Thu,  3 Apr 2025 15:10:27 -0300

fix #9589

Diffstat:
Mpackages/taler-wallet-webextension/src/wallet/Application.tsx | 2+-
Mpackages/taler-wallet-webextension/src/wallet/DestinationSelection/index.ts | 3++-
Mpackages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts | 5+++--
3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx @@ -263,7 +263,7 @@ export function Application(): VNode { redirectTo( Pages.ctaDeposit({ scope: encodeCrockForURI(stringifyScopeInfoShort(s)), - account: encodeCrockForURI(stringifyPaytoUri(p)), + account: encodeCrockForURI(p), }), ) } diff --git a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/index.ts b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/index.ts @@ -18,6 +18,7 @@ import { WalletBankAccountInfo, PaytoUri, ScopeInfo, + PaytoString, } from "@gnu-taler/taler-util"; import { ErrorAlertView } from "../../components/CurrentAlerts.js"; import { Loading } from "../../components/Loading.js"; @@ -38,7 +39,7 @@ interface PropsGet { interface PropsSend { type: "send"; scope: ScopeInfo; - goToWalletKnownBankDeposit: (s: ScopeInfo, p: PaytoUri) => void; + goToWalletKnownBankDeposit: (s: ScopeInfo, p: PaytoString) => void; goToWalletNewBankDeposit: (s: ScopeInfo) => void; goToWalletWalletSend: (s: ScopeInfo) => void; } diff --git a/packages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts b/packages/taler-wallet-webextension/src/wallet/DestinationSelection/state.ts @@ -20,7 +20,8 @@ import { PaytoUri, ScopeType, parseScopeInfoShort, - stringifyScopeInfoShort + stringifyScopeInfoShort, + PaytoString } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { useTranslationContext } from "@gnu-taler/web-util/browser"; @@ -125,7 +126,7 @@ export function useComponentState(props: Props): RecursiveState<State> { status: "ready", error: undefined, previous, - onSelectAccount: pushAlertOnError(async (account: PaytoUri) => { + onSelectAccount: pushAlertOnError(async (account: PaytoString) => { props.goToWalletKnownBankDeposit(scope, account); }), goToBank: {