From d80f651c0ea87037069fd553b2bd5a3ef52ea525 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Wed, 26 Jul 2023 09:38:36 +0200 Subject: [PATCH] fix(clipboard): reject error --- .../libraries/core/src/utils/clipboard/write-on-clipboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/libraries/core/src/utils/clipboard/write-on-clipboard.ts b/packages/libraries/core/src/utils/clipboard/write-on-clipboard.ts index eecd2bd079..834ad61c3b 100644 --- a/packages/libraries/core/src/utils/clipboard/write-on-clipboard.ts +++ b/packages/libraries/core/src/utils/clipboard/write-on-clipboard.ts @@ -3,6 +3,6 @@ export function writeOnClipboard(textToWrite: string): Promise { return navigator.clipboard.writeText(textToWrite); } catch (error) { console.error(error); - return Promise.resolve(); + return Promise.reject(error); } } \ No newline at end of file