From 527321b9e2fd6681abdb07e62e5228f99c02c4cf Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 2 Sep 2024 01:01:52 +0300 Subject: [PATCH] Fix warning toast on negative swipe id --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 5481ecec4..157f05c6e 100644 --- a/public/script.js +++ b/public/script.js @@ -7462,7 +7462,7 @@ export function hideSwipeButtons() { */ export async function deleteSwipe(swipeId = null) { if (swipeId && (isNaN(swipeId) || swipeId < 0)) { - toastr.warning('Invalid swipe ID: ' + swipeId); + toastr.warning(`Invalid swipe ID: ${swipeId + 1}`); return; }