From 7172699e7061d981819132e43b1fee62cf538d5f Mon Sep 17 00:00:00 2001 From: Elliot Braem <16282460+elliotBraem@users.noreply.github.com> Date: Wed, 28 Aug 2024 22:41:54 -0400 Subject: [PATCH] check for hrefWithParams --- apps/potlock/widget/Project/CreateForm.jsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/potlock/widget/Project/CreateForm.jsx b/apps/potlock/widget/Project/CreateForm.jsx index 22f791a..dc7bbf6 100644 --- a/apps/potlock/widget/Project/CreateForm.jsx +++ b/apps/potlock/widget/Project/CreateForm.jsx @@ -1000,9 +1000,11 @@ return ( type: "primary", text: "View your project", disabled: false, - href: props.hrefWithParams( - `?tab=project&projectId=${registeredProject?.id || context.accountId}` - ), + href: + props.hrefWithParams && + props.hrefWithParams( + `?tab=project&projectId=${registeredProject?.id || context.accountId}` + ), }} />