aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-05-17 17:29:37 -0300
committerSebastian <sebasjm@gmail.com>2024-05-17 17:29:37 -0300
commit184c3bcd2d7aabbc033b035fda34e86b3df2f98a (patch)
tree6492e3e865cd555d6fb2b16578c954b2f159b382 /packages/merchant-backoffice-ui/src/paths
parent9381ac6d1031ac16882023c617dc82b53df7a961 (diff)
downloadwallet-core-184c3bcd2d7aabbc033b035fda34e86b3df2f98a.tar.xz
fix #8856
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx2
1 files changed, 0 insertions, 2 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx
index 6bdcf6d18..32c5637aa 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/UpdatePage.tsx
@@ -92,7 +92,6 @@ export function UpdatePage({ template, onUpdate, onBack }: Props): VNode {
function updateState(up: (s: Partial<Entity>) => Partial<Entity>) {
setState((old) => {
const newState = up(old);
- console.log("====", newState.amount)
if (!newState.amount_editable) {
newState.currency_editable = false;
}
@@ -152,7 +151,6 @@ export function UpdatePage({ template, onUpdate, onBack }: Props): VNode {
const template_contract: TalerMerchantApi.TemplateContractDetails = {
minimum_age: state.minimum_age!,
pay_duration: Duration.toTalerProtocolDuration(state.pay_duration!),
- // FIXME: Check if amount_editable is a plain currency, in that case the user must specify it.
amount: contract_amount,
summary: contract_summary,
currency: