From f8b1d50a62ec08bb1df8b00b9ba1edcc1b91aeb5 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Wed, 26 Jul 2023 10:37:33 +0100 Subject: [PATCH] fix: percentage allocation display (#2518) --- frontend/web/components/modals/CreateFlag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/web/components/modals/CreateFlag.js b/frontend/web/components/modals/CreateFlag.js index a62f54d0fef0..3422dfb34638 100644 --- a/frontend/web/components/modals/CreateFlag.js +++ b/frontend/web/components/modals/CreateFlag.js @@ -111,9 +111,9 @@ const CreateFlag = class extends Component { return { ...v, default_percentage_allocation: - v.default_percentage_allocation || (matchingVariation && matchingVariation.percentage_allocation) || + v.default_percentage_allocation || 0, } }),