From 86d3c67026e34d3d9182752ae5c09cb21b44fed3 Mon Sep 17 00:00:00 2001 From: He4eT Date: Thu, 25 Mar 2021 15:23:56 +0500 Subject: [PATCH] Fix typo --- src/components/Player/TextBuffer.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Player/TextBuffer.jsx b/src/components/Player/TextBuffer.jsx index 223f268..59d38d6 100644 --- a/src/components/Player/TextBuffer.jsx +++ b/src/components/Player/TextBuffer.jsx @@ -3,7 +3,7 @@ import { useEffect, useRef, useState } from 'preact/hooks' import TextMessage from './TextMessage' -const trimImputPrompt = messages => +const trimInputPrompt = messages => messages.length < 1 ? messages : messages.slice(-1)[0].text === '>' @@ -32,7 +32,7 @@ const parseInbox = (inbox, currentWindow) => { /* Normalize. */ .map(({ content }) => content - ? [...trimImputPrompt(content), eol] + ? [...trimInputPrompt(content), eol] : [eol]) /* Flatten. */ .reduce((acc, x) =>