From 48c7eeb57eb013c88515ca4176c426e33278c345 Mon Sep 17 00:00:00 2001
From: Mar0xy <marie@kaifa.ch>
Date: Sun, 15 Oct 2023 18:03:27 +0200
Subject: fix: prevent quoted toast to be triggered when not quoted

---
 packages/frontend/src/components/MkNoteSub.vue | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'packages/frontend/src/components/MkNoteSub.vue')

diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue
index a701766c25..9976892355 100644
--- a/packages/frontend/src/components/MkNoteSub.vue
+++ b/packages/frontend/src/components/MkNoteSub.vue
@@ -326,6 +326,7 @@ function quote() {
 				limit: 1,
 				quote: true,
 			}).then((res) => {
+				if (!(res.length > 0)) return;
 				const el = quoteButton.value as HTMLElement | null | undefined;
 				if (el && res.length > 0) {
 					const rect = el.getBoundingClientRect();
@@ -348,6 +349,7 @@ function quote() {
 				limit: 1,
 				quote: true,
 			}).then((res) => {
+				if (!(res.length > 0)) return;
 				const el = quoteButton.value as HTMLElement | null | undefined;
 				if (el && res.length > 0) {
 					const rect = el.getBoundingClientRect();
-- 
cgit v1.2.3-freya

