From 1b2b5d62de5888eae895db69cf6ae51dbfddb32b Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 27 Jan 2023 12:35:10 -0300
Subject: add use-template button

---
 .../src/paths/instance/templates/create/CreatePage.tsx                  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/merchant-backoffice-ui/src/paths/instance/templates/create/CreatePage.tsx')

diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/create/CreatePage.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/create/CreatePage.tsx
index 2a47c22a0..2b8d718fb 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/templates/create/CreatePage.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/create/CreatePage.tsx
@@ -72,7 +72,7 @@ export function CreatePage({ onCreate, onBack }: Props): VNode {
             ? i18n.str`can't be empty`
             : state.template_contract.pay_duration.d_us === "forever"
             ? undefined
-            : state.template_contract.pay_duration.d_us < 1000
+            : state.template_contract.pay_duration.d_us < 1000 * 1000 //less than one second
             ? i18n.str`to short`
             : undefined,
         }),
-- 
cgit v1.2.3

