From e08fca15b63ce217fff5c6a6d49ddee0ca3d9308 Mon Sep 17 00:00:00 2001 From: keyan Date: Fri, 8 Dec 2023 19:11:25 -0600 Subject: [PATCH] set billing state from existing on edit --- components/territory-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/territory-form.js b/components/territory-form.js index 1e222e8b..abc35d7c 100644 --- a/components/territory-form.js +++ b/components/territory-form.js @@ -51,7 +51,7 @@ export default function TerritoryForm ({ sub }) { }, [client, upsertSub, router] ) - const [billing, setBilling] = useState('monthly') + const [billing, setBilling] = useState((sub?.billingType || 'MONTHLY').toLowerCase()) return (