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/basic-auth-generator/basic-auth-generator.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/tools/basic-auth-generator/basic-auth-generator.vue')

diff --git a/src/tools/basic-auth-generator/basic-auth-generator.vue b/src/tools/basic-auth-generator/basic-auth-generator.vue
index f96a8c7..a894612 100644
--- a/src/tools/basic-auth-generator/basic-auth-generator.vue
+++ b/src/tools/basic-auth-generator/basic-auth-generator.vue
@@ -30,7 +30,7 @@ const { copy } = useCopy({ source: header, text: 'Header copied to the clipboard
       </n-statistic>
     </c-card>
     <div mt-5 flex justify-center>
-      <c-button @click="copy">
+      <c-button @click="copy()">
         Copy header
       </c-button>
     </div>
-- 
cgit v1.2.3

