mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17: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'
|
import TextMessage from './TextMessage'
|
||||||
|
|
||||||
const trimImputPrompt = messages =>
|
const trimInputPrompt = messages =>
|
||||||
messages.length < 1
|
messages.length < 1
|
||||||
? messages
|
? messages
|
||||||
: messages.slice(-1)[0].text === '>'
|
: messages.slice(-1)[0].text === '>'
|
||||||
|
|
@ -32,7 +32,7 @@ const parseInbox = (inbox, currentWindow) => {
|
||||||
/* Normalize. */
|
/* Normalize. */
|
||||||
.map(({ content }) =>
|
.map(({ content }) =>
|
||||||
content
|
content
|
||||||
? [...trimImputPrompt(content), eol]
|
? [...trimInputPrompt(content), eol]
|
||||||
: [eol])
|
: [eol])
|
||||||
/* Flatten. */
|
/* Flatten. */
|
||||||
.reduce((acc, x) =>
|
.reduce((acc, x) =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue