Fix warning toast on negative swipe id

This commit is contained in:
Cohee 2024-09-02 01:01:52 +03:00
parent daf8c827f7
commit 527321b9e2

View File

@ -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;
}