Fix warning toast on negative swipe id
| @@ -7462,7 +7462,7 @@ export function hideSwipeButtons() { | |||
| 7462 | */ | 7462 | */ |
| 7463 | export async function deleteSwipe(swipeId = null) { | 7463 | export 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 | } |
| 7468 | 7468 | ||