mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
Fix typo
This commit is contained in:
parent
414eb58d51
commit
86d3c67026
1 changed files with 2 additions and 2 deletions
|
|
@ -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) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue