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

(limited to 'src/tools/random-port-generator/random-port-generator.vue')

diff --git a/src/tools/random-port-generator/random-port-generator.vue b/src/tools/random-port-generator/random-port-generator.vue
index e4ac609..89ab217 100644
--- a/src/tools/random-port-generator/random-port-generator.vue
+++ b/src/tools/random-port-generator/random-port-generator.vue
@@ -14,7 +14,7 @@ const { copy } = useCopy({ source: port, text: 'Port copied to the clipboard' })
       {{ port }}
     </div>
     <div flex justify-center gap-3>
-      <c-button @click="copy">
+      <c-button @click="copy()">
         Copy
       </c-button>
       <c-button @click="refreshPort">
-- 
cgit v1.2.3

