on master help sign in
Use consistent "hdPath" spelling
ba09d4eFang
src/views/Login/Trezor.js+5−5
@@ -42,7 +42,7 @@ export default function Trezor({ className, goHome }) {
42 composeValidator({
42 composeValidator({
43 useCustomPath: buildCheckboxValidator(),
43 useCustomPath: buildCheckboxValidator(),
44 account: buildSelectValidator(ACCOUNT_OPTIONS),
44 account: buildSelectValidator(ACCOUNT_OPTIONS),
45− hdpath: buildHdPathValidator(),
45+ hdPath: buildHdPathValidator(),
46 }),
46 }),
47 []
47 []
48 );
48 );
@@ -55,7 +55,7 @@ export default function Trezor({ className, goHome }) {
55 });
55 });
56
56
57 const { success, payload } = await TrezorConnect.getPublicKey({
57 const { success, payload } = await TrezorConnect.getPublicKey({
58− path: values.hdpath,
58+ path: values.hdPath,
59 });
59 });
60
60
61 if (!success) {
61 if (!success) {
@@ -79,14 +79,14 @@ export default function Trezor({ className, goHome }) {
79 }
79 }
80
80
81 if (!values.useCustomPath) {
81 if (!values.useCustomPath) {
82− form.change('hdpath', TREZOR_PATH.replace(/x/g, values.account));
82+ form.change('hdPath', TREZOR_PATH.replace(/x/g, values.account));
83 }
83 }
84 }, []);
84 }, []);
85
85
86 const initialValues = useMemo(
86 const initialValues = useMemo(
87 () => ({
87 () => ({
88 useCustomPath: false,
88 useCustomPath: false,
89− hdpath: TREZOR_PATH.replace(/x/g, ACCOUNT_OPTIONS[0].value),
89+ hdPath: TREZOR_PATH.replace(/x/g, ACCOUNT_OPTIONS[0].value),
90 account: ACCOUNT_OPTIONS[0].value,
90 account: ACCOUNT_OPTIONS[0].value,
91 }),
91 }),
92 []
92 []
@@ -112,7 +112,7 @@ export default function Trezor({ className, goHome }) {
112 {({ handleSubmit }) => (
112 {({ handleSubmit }) => (
113 <>
113 <>
114 <Condition when="useCustomPath" is={true}>
114 <Condition when="useCustomPath" is={true}>
115− <Grid.Item full as={HdPathInput} name="hdpath" label="HD Path" />
115+ <Grid.Item full as={HdPathInput} name="hdPath" label="HD Path" />
116 </Condition>
116 </Condition>
117
117
118 <Condition when="useCustomPath" is={false}>
118 <Condition when="useCustomPath" is={false}>