From dbff25713e82b87efa97d47e3f54147951e6a435 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 23 Jun 2023 12:30:49 +0200 Subject: [PATCH] fix(ui): fix rollout min value, fix empty conditions text --- frontend/app/components/FFlags/NewFFlag/Multivariant.tsx | 9 +++++---- frontend/app/components/FFlags/NewFFlag/NewFFlag.tsx | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/app/components/FFlags/NewFFlag/Multivariant.tsx b/frontend/app/components/FFlags/NewFFlag/Multivariant.tsx index 8e3f45173..f8ed98651 100644 --- a/frontend/app/components/FFlags/NewFFlag/Multivariant.tsx +++ b/frontend/app/components/FFlags/NewFFlag/Multivariant.tsx @@ -58,7 +58,7 @@ function Multivariant() {
Distribute Equally @@ -108,9 +108,10 @@ function Multivariant() { wrapperClassName={'flex-1'} placeholder={avg} value={variant.rolloutPercentage} - onChange={(e: React.ChangeEvent) => - variant.setRollout(parseInt(e.target.value.replace(/\D/g, ''), 10)) - } + onChange={(e: React.ChangeEvent) => { + if (e.target.value === '') variant.setRollout(0); + variant.setRollout(parseInt(e.target.value.replace(/\D/g, ''), 10)); + }} />
- Indicate the users for whom you intend to make this flag available. + Set up condition sets to restrict the rollout.