diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-13 09:30:28 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-13 09:30:28 +0800 |
commit | 01b36b494996c641a3cb5bd3fd894624a8dad210 (patch) | |
tree | eb7ab9dc21faf515807f1be29839f6cc3580961d /packages/instant/src/components/payment_method.tsx | |
parent | 711b307e6c56457647a98c6d76725aa90ac0d53e (diff) | |
download | dexon-0x-contracts-01b36b494996c641a3cb5bd3fd894624a8dad210.tar dexon-0x-contracts-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.gz dexon-0x-contracts-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.bz2 dexon-0x-contracts-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.lz dexon-0x-contracts-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.xz dexon-0x-contracts-01b36b494996c641a3cb5bd3fd894624a8dad210.tar.zst dexon-0x-contracts-01b36b494996c641a3cb5bd3fd894624a8dad210.zip |
fix: remove requirement of default case in all switch statements
Diffstat (limited to 'packages/instant/src/components/payment_method.tsx')
-rw-r--r-- | packages/instant/src/components/payment_method.tsx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/packages/instant/src/components/payment_method.tsx b/packages/instant/src/components/payment_method.tsx index 25c879519..49ec22164 100644 --- a/packages/instant/src/components/payment_method.tsx +++ b/packages/instant/src/components/payment_method.tsx @@ -51,8 +51,6 @@ export class PaymentMethod extends React.Component<PaymentMethodProps> { return 'connect your wallet'; case AccountState.Ready: return 'payment method'; - default: - return 'payment method'; } }; private readonly _renderTitleLabel = (): React.ReactNode => { @@ -104,8 +102,6 @@ export class PaymentMethod extends React.Component<PaymentMethodProps> { network={network} /> ); - default: - return null; } }; } |