Skip to content

Commit

Permalink
fix: rename autosaver to valueshandler
Browse files Browse the repository at this point in the history
  • Loading branch information
shrugs committed Aug 5, 2019
1 parent c622065 commit 26f6d3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/form/BridgeForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Form } from 'react-final-form';
import setFieldData from 'final-form-set-field-data';

import Autosaver from './Autosaver';
import ValuesHandler from './ValuesHandler';
import ValidationPauser from './ValidationPauser';

export default function BridgeForm({ children, onValues, ...rest }) {
Expand All @@ -12,7 +12,7 @@ export default function BridgeForm({ children, onValues, ...rest }) {
<>
<ValidationPauser />
{children(formProps)}
{onValues && <Autosaver onValues={onValues} />}
{onValues && <ValuesHandler onValues={onValues} />}
</>
)}
</Form>
Expand Down
2 changes: 1 addition & 1 deletion src/form/Autosaver.js → src/form/ValuesHandler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect } from 'react';
import { useFormState, useForm } from 'react-final-form';

export default function Autosaver({ onValues }) {
export default function ValuesHandler({ onValues }) {
const form = useForm();
const { valid, validating, values } = useFormState({
subscription: {
Expand Down
2 changes: 0 additions & 2 deletions src/views/Activate/ActivateCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ export default function ActivateCode() {
return errors;
}

console.log('FUCK — deriving seed');

await timeout(100); // allow the ui changes to flush before we lag it out

const _contracts = need.contracts(contracts);
Expand Down

0 comments on commit 26f6d3e

Please sign in to comment.