From c407acaadc5dadbc7db917a11c8294aa7710b2cc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 15 Jun 2022 18:33:07 -0700 Subject: Fix replay limits (fix #963) --- modern/src/other/ReplayPage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modern') diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js index fb6e00a5..fdd78765 100644 --- a/modern/src/other/ReplayPage.js +++ b/modern/src/other/ReplayPage.js @@ -182,13 +182,13 @@ const ReplayPage = () => { />
{`${index + 1}/${positions.length}`} - setIndex((index) => index - 1)} disabled={playing}> + setIndex((index) => index - 1)} disabled={playing || index <= 0}> - setPlaying(!playing)}> + setPlaying(!playing)} disabled={index >= positions.length - 1}> {playing ? : } - setIndex((index) => index + 1)} disabled={playing}> + setIndex((index) => index + 1)} disabled={playing || index >= positions.length - 1}> {formatTime(positions[index].fixTime)} -- cgit v1.2.3