This commit is contained in:
He4eT 2021-02-26 21:09:00 +05:00
commit 3cc2818f40
3 changed files with 21 additions and 13 deletions

View file

@ -7,6 +7,11 @@ module.exports = {
'standard',
'standard-preact'
],
overrides: [
{
files: ['*.jsx', '*.js']
}
],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
@ -15,7 +20,7 @@ module.exports = {
},
settings: {
react: {
version: 'latest',
},
version: 'latest'
}
}
}

View file

@ -6,9 +6,12 @@ const parseInbox = (inbox, currentWindow) => {
inbox.find(({ id }) =>
id === currentWindow.id)
if (!currentInbox) return {
if (!currentInbox) {
return {
clear: false,
incoming: []}
incoming: []
}
}
const { clear, text: inboxMessagesRaw } =
currentInbox
@ -48,7 +51,7 @@ export default function ({ inbox, currentWindow }) {
return (
<div>
{messages?.map(({text}) =>
{messages.map(({ text }) =>
(<div>{text}</div>))}
</div>
)