From e74d4b4ddb3212db11095a7a969957bfc795f5fb Mon Sep 17 00:00:00 2001 From: Gerard Burns Date: Thu, 27 Apr 2023 14:17:09 +0100 Subject: [PATCH] PR Feedback --- packages/client/src/components/app/Button.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/client/src/components/app/Button.svelte b/packages/client/src/components/app/Button.svelte index 51452de199..a074986342 100644 --- a/packages/client/src/components/app/Button.svelte +++ b/packages/client/src/components/app/Button.svelte @@ -19,12 +19,12 @@ export let active = false const handleOnClick = async () => { - if (handlingOnClick) { - return + handlingOnClick = true + + if (onClick) { + await onClick() } - handlingOnClick = true - await onClick() handlingOnClick = false } @@ -49,7 +49,7 @@