on master help sign in
Use consistent "hdPath" spelling

We were using "hdpath", but finally setting from "hdPath". This uses the latter spelling throughout the entire file.

commitba09d4e76ec65288810d0e536e99e7a2c98415c8 authorFang <git@fang.io> dateThu 22 Aug 2019, 23:13 (7 years ago) parent6192460
1 file changed+5−5
src/views/Login/Trezor.js+5−5
src/views/Login/Trezor.js+5−5
@@ -42,7 +42,7 @@ export default function Trezor({ className, goHome }) {
4242 composeValidator({
4343 useCustomPath: buildCheckboxValidator(),
4444 account: buildSelectValidator(ACCOUNT_OPTIONS),
45− hdpath: buildHdPathValidator(),
45+ hdPath: buildHdPathValidator(),
4646 }),
4747 []
4848 );
@@ -55,7 +55,7 @@ export default function Trezor({ className, goHome }) {
5555 });
5656
5757 const { success, payload } = await TrezorConnect.getPublicKey({
58− path: values.hdpath,
58+ path: values.hdPath,
5959 });
6060
6161 if (!success) {
@@ -79,14 +79,14 @@ export default function Trezor({ className, goHome }) {
7979 }
8080
8181 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));
8383 }
8484 }, []);
8585
8686 const initialValues = useMemo(
8787 () => ({
8888 useCustomPath: false,
89− hdpath: TREZOR_PATH.replace(/x/g, ACCOUNT_OPTIONS[0].value),
89+ hdPath: TREZOR_PATH.replace(/x/g, ACCOUNT_OPTIONS[0].value),
9090 account: ACCOUNT_OPTIONS[0].value,
9191 }),
9292 []
@@ -112,7 +112,7 @@ export default function Trezor({ className, goHome }) {
112112 {({ handleSubmit }) => (
113113 <>
114114 <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" />
116116 </Condition>
117117
118118 <Condition when="useCustomPath" is={false}>