diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts b/packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts index 20edb98eb..1a92c4073 100644 --- a/packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts +++ b/packages/taler-wallet-webextension/src/cta/PaymentTemplate/state.ts @@ -49,7 +49,7 @@ export function useComponentState({ const templateP = await api.wallet.call( WalletApiOperation.CheckPayForTemplate, { talerPayTemplateUri: talerTemplateUri }, ); - const requireMoreInfo = !templateP.template_contract.amount || !templateP.template_contract.summary; + const requireMoreInfo = !templateP.templateDetails.template_contract.amount || !templateP.templateDetails.template_contract.summary; let payStatus: PreparePayResult | undefined = undefined; if (!requireMoreInfo) { payStatus = await api.wallet.call(WalletApiOperation.PreparePayForTemplate, { talerPayTemplateUri: talerTemplateUri }); @@ -99,8 +99,8 @@ export function useComponentState({ } return () => { - const cfg = hook.response.templateP.template_contract; - const def = hook.response.templateP.editable_defaults; + const cfg = hook.response.templateP.templateDetails.template_contract; + const def = hook.response.templateP.templateDetails.editable_defaults; const fixedAmount = cfg.amount !== undefined ? Amounts.parseOrThrow(cfg.amount) : undefined; const fixedSummary = cfg.summary !== undefined ? cfg.summary : undefined; |