Skip to content

Commit

Permalink
Fix inability to set PIN
Browse files Browse the repository at this point in the history
  • Loading branch information
ybizeul committed Aug 10, 2023
1 parent d53b946 commit 62d667d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ui/src/routes/feed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,13 @@ export default function Feed() {
<div className="text-center">
Please choose a PIN, it wille expire after 2 minutes:
</div>
<Form
<Row justify='center'>
<Col>
<Form
action="/"
onFinish={setPIN}
>
<Row justify='center'>
<Col>
<Form
action="/"
>

<Form.Item
name="PIN"
rules={[{ required: true, type: 'string', len: 4, pattern: RegExp("[0-9]{4}"), validateTrigger:"onBlur" }]}
Expand All @@ -240,7 +239,7 @@ export default function Feed() {
</Form>
</Col>
</Row>
</Form>

</Modal>
<Modal title="Delete" className="DeleteModal" open={deleteModalOpen} onOk={handleDeleteModalOK} onCancel={handleDeleteModalCancel} destroyOnClose={true}>
<p>Do you really want to delete file "{deleteFileName}"?</p>
Expand Down

0 comments on commit 62d667d

Please sign in to comment.