diff --git a/theme/list_lib.js b/theme/list_lib.js index 2b5931dab..7204746b8 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -1054,7 +1054,7 @@ function unshowDiveDetails(dive) function nextDetailedDive() { - if (dive_id < items.length) { + if (dive_id < items.length - 1) { showDiveDetails(++dive_id); } }