aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/dialogs
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-06 02:45:54 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-06 02:45:54 +0800
commit97312c265666b3f3f955c096de5aba8791329d79 (patch)
tree856e7a77f3d6e6d5c5828ff20d821bbd7fbb337b /packages/website/ts/components/dialogs
parente9e4df48912e22b22b2fc874cb64c5da63364772 (diff)
downloaddexon-sol-tools-97312c265666b3f3f955c096de5aba8791329d79.tar
dexon-sol-tools-97312c265666b3f3f955c096de5aba8791329d79.tar.gz
dexon-sol-tools-97312c265666b3f3f955c096de5aba8791329d79.tar.bz2
dexon-sol-tools-97312c265666b3f3f955c096de5aba8791329d79.tar.lz
dexon-sol-tools-97312c265666b3f3f955c096de5aba8791329d79.tar.xz
dexon-sol-tools-97312c265666b3f3f955c096de5aba8791329d79.tar.zst
dexon-sol-tools-97312c265666b3f3f955c096de5aba8791329d79.zip
Use default networkId of 1 for ledger dropdown
Diffstat (limited to 'packages/website/ts/components/dialogs')
-rw-r--r--packages/website/ts/components/dialogs/ledger_config_dialog.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/website/ts/components/dialogs/ledger_config_dialog.tsx b/packages/website/ts/components/dialogs/ledger_config_dialog.tsx
index 38e4732a4..d2f373d67 100644
--- a/packages/website/ts/components/dialogs/ledger_config_dialog.tsx
+++ b/packages/website/ts/components/dialogs/ledger_config_dialog.tsx
@@ -29,7 +29,7 @@ interface LedgerConfigDialogProps {
toggleDialogFn: (isOpen: boolean) => void;
dispatcher: Dispatcher;
blockchain: Blockchain;
- networkId: number;
+ networkId?: number;
providerType: ProviderType;
}
@@ -44,6 +44,9 @@ interface LedgerConfigDialogState {
}
export class LedgerConfigDialog extends React.Component<LedgerConfigDialogProps, LedgerConfigDialogState> {
+ public static defaultProps = {
+ networkId: 1,
+ };
constructor(props: LedgerConfigDialogProps) {
super(props);
const derivationPathIfExists = props.blockchain.getLedgerDerivationPathIfExists();