From e493b16466a51cc840cf3c9df395c1c79358c8dc Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Mon, 30 May 2022 15:28:32 +0000 Subject: [PATCH] Payment amount input leading 0 (#2836) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: gitstart Co-authored-by: JĂșlio Piubello da Silva Cabral --- apps/web/pages/event-types/[type].tsx | 2 +- yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsx index eb63fb1d27..eb645075d2 100644 --- a/apps/web/pages/event-types/[type].tsx +++ b/apps/web/pages/event-types/[type].tsx @@ -1868,7 +1868,7 @@ const EventTypePage = (props: inferSSRProps) => { onChange={(e) => { field.onChange(e.target.valueAsNumber * 100); }} - value={field.value > 0 ? field.value / 100 : 0} + value={field.value > 0 ? field.value / 100 : undefined} /> )} /> diff --git a/yarn.lock b/yarn.lock index b5b7a41803..a21b0890e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17074,4 +17074,4 @@ zwitch@^1.0.0: zwitch@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-2.0.2.tgz#91f8d0e901ffa3d66599756dde7f57b17c95dce1" - integrity sha512-JZxotl7SxAJH0j7dN4pxsTV6ZLXoLdGME+PsjkL/DaBrVryK9kTGq06GfKrwcSOqypP+fdXGoCHE36b99fWVoA== + integrity sha512-JZxotl7SxAJH0j7dN4pxsTV6ZLXoLdGME+PsjkL/DaBrVryK9kTGq06GfKrwcSOqypP+fdXGoCHE36b99fWVoA== \ No newline at end of file