Fix warning toast on negative swipe id

527321b9e2fd6681abdb07e62e5228f99c02c4cf

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -7462,7 +7462,7 @@ export function hideSwipeButtons() {
7462 */7462 */
7463export async function deleteSwipe(swipeId = null) {7463export async function deleteSwipe(swipeId = null) {
7464 if (swipeId && (isNaN(swipeId) || swipeId < 0)) {7464 if (swipeId && (isNaN(swipeId) || swipeId < 0)) {
7465 toastr.warning('Invalid swipe ID: ' + swipeId);7465 toastr.warning(`Invalid swipe ID: ${swipeId + 1}`);
7466 return;7466 return;
7467 }7467 }
74687468