Although onions likely wouldn’t threaten your ketogenic condition if you consume much less than 50g of carbs, 50 % an onion in the dish may possibly increase ample carbs to put you above your limit in case you aim to eat under 5g as well as 10g of carbs daily. https://alch-lab.com/keto-diet/why-is-sugar-dangerous-for-your-health/