Skip to content

Commit

Permalink
Fix Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Slouchwind committed Apr 16, 2023
1 parent 0c633a5 commit 892fa31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions components/window.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ export default class Window<A> {
<h2>{title}</h2>
<p onClick={_ => closeWindow()}>x</p>
</div>
<div
className='element'
children={element(closeWindow)}
/>
<div className='element'>{element(closeWindow)}</div>
</div>
)}
</>);
Expand Down
3 changes: 1 addition & 2 deletions pages/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export default function Info() {
<p>请输入需要在列表{IdPromptTypeText[type || '+']}的学生的Id</p>
<input type='number' onChange={e => { idPromptInputRef.current = Number(e.target.value); }} />
<button
children={IdPromptTypeText[type || '+']}
onClick={() => {
if (type === '+') {
if (studentsList?.includes(idPromptInputRef.current)) {
Expand All @@ -126,7 +125,7 @@ export default function Info() {
}
}
}}
/>
>{IdPromptTypeText[type || '+']}</button>
</>)}
zIndex={zIndex}
display={display}
Expand Down

1 comment on commit 892fa31

@vercel
Copy link

@vercel vercel bot commented on 892fa31 Apr 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.