This commit is contained in:
Alexander Zinchuk 2022-07-10 12:14:42 +02:00
parent 905415ccff
commit abd05dc798

View File

@ -106,7 +106,7 @@ const ChatList: FC<OwnProps> = ({
if (!digit) return; if (!digit) return;
const position = Number(digit) - 1; const position = Number(digit) - 1;
if (position > orderedIds!.length - 1) return; if (position > orderedIds!.length - 1 || position < 0) return;
openChat({ id: orderedIds![position], shouldReplaceHistory: true }); openChat({ id: orderedIds![position], shouldReplaceHistory: true });
} }