From 01fddb34c92dbc16b96267d0424697844e25ede7 Mon Sep 17 00:00:00 2001 From: Albert Folch Date: Mon, 13 Nov 2023 18:15:54 +0100 Subject: [PATCH] add else clause --- packages/react-kit/src/hooks/useCtaClickHandler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-kit/src/hooks/useCtaClickHandler.ts b/packages/react-kit/src/hooks/useCtaClickHandler.ts index ab2223041..63df51b27 100644 --- a/packages/react-kit/src/hooks/useCtaClickHandler.ts +++ b/packages/react-kit/src/hooks/useCtaClickHandler.ts @@ -134,6 +134,8 @@ export function useCtaClickHandler({ ); receipt = error.receipt; } + } else { + throw error; } } }