From d8bc2a5f586ff83e573973d304499f04b0ddcd80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Thu, 2 Feb 2023 08:30:00 +0100 Subject: [PATCH] fix: calculating estimated cost (#12105) --- .../components/interfaces/Billing/Subscription/Subscription.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/components/interfaces/Billing/Subscription/Subscription.tsx b/studio/components/interfaces/Billing/Subscription/Subscription.tsx index aa49e690d66..f055eaa1bbc 100644 --- a/studio/components/interfaces/Billing/Subscription/Subscription.tsx +++ b/studio/components/interfaces/Billing/Subscription/Subscription.tsx @@ -62,7 +62,7 @@ const Subscription: FC = ({ ? 0 : Object.keys(usage) .map((productKey) => { - return usage[productKey].cost + return usage[productKey].cost ?? 0 }) .reduce((prev, current) => prev + current, 0)