From 86e964a2743f5f1f058ecb62a18c7d3c93bff4ea Mon Sep 17 00:00:00 2001
From: Corentin THOMASSET <corentin.thomasset74@gmail.com>
Date: Thu, 10 Aug 2023 00:07:44 +0200
Subject: fix(copy): prevent shorthand copy if source is present in useCopy
 (#559)

* fix(copy): prevent shorthand copy if source is present in useCopy

* refactor(copy): normalized copy usage
---
 src/tools/html-entities/html-entities.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/tools/html-entities/html-entities.vue')

diff --git a/src/tools/html-entities/html-entities.vue b/src/tools/html-entities/html-entities.vue
index a0f6102..1a2192e 100644
--- a/src/tools/html-entities/html-entities.vue
+++ b/src/tools/html-entities/html-entities.vue
@@ -37,7 +37,7 @@ const { copy: copyUnescaped } = useCopy({ source: unescapeOutput });
     </n-form-item>
 
     <div flex justify-center>
-      <c-button @click="copyEscaped">
+      <c-button @click="copyEscaped()">
         Copy
       </c-button>
     </div>
@@ -66,7 +66,7 @@ const { copy: copyUnescaped } = useCopy({ source: unescapeOutput });
     </n-form-item>
 
     <div flex justify-center>
-      <c-button @click="copyUnescaped">
+      <c-button @click="copyUnescaped()">
         Copy
       </c-button>
     </div>
-- 
cgit v1.2.3

