commit 0c812b2e3bc20899cc4ff91778d4094642d51cb8
parent d5671c2ff13a9ff7c3836ba6ee9200b89d22dccc
Author: Sebastian <sebasjm@gmail.com>
Date: Mon, 9 May 2022 13:43:37 -0300
fix: added the missing *1000 after change from ms to us
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/packages/merchant-backoffice/src/paths/admin/create/CreatePage.tsx b/packages/merchant-backoffice/src/paths/admin/create/CreatePage.tsx
@@ -48,9 +48,9 @@ function with_defaults(id?: string): Partial<Entity> {
return {
id,
payto_uris: [],
- default_pay_delay: { d_us: 1000 * 60 * 60 }, // one hour
+ default_pay_delay: { d_us: 2 * 1000 * 60 * 60 * 1000 }, // two hours
default_wire_fee_amortization: 1,
- default_wire_transfer_delay: { d_us: 1000 * 2 * 60 * 60 * 24 }, // one day
+ default_wire_transfer_delay: { d_us: 1000 * 2 * 60 * 60 * 24 * 1000 }, // two days
};
}
diff --git a/packages/merchant-backoffice/src/paths/instance/update/UpdatePage.tsx b/packages/merchant-backoffice/src/paths/instance/update/UpdatePage.tsx
@@ -58,8 +58,8 @@ function convert(
const payto_uris = accounts.filter((a) => a.active).map((a) => a.payto_uri);
const defaults = {
default_wire_fee_amortization: 1,
- default_pay_delay: { d_us: 1000 * 60 * 60 }, //one hour
- default_wire_transfer_delay: { d_us: 1000 * 60 * 60 * 2 }, //two hours
+ default_pay_delay: { d_us: 2 * 1000 * 1000 * 60 * 60 }, //two hours
+ default_wire_transfer_delay: { d_us: 2 * 1000 * 1000 * 60 * 60 * 2 }, //two hours
};
return { ...defaults, ...rest, payto_uris };
}