We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f595cd6 + 7a9ee62 commit 5233c7cCopy full SHA for 5233c7c
frontends/web/src/routes/account/send/send.tsx
@@ -172,11 +172,14 @@ class Send extends Component<Props, State> {
172
173
public componentWillMount() {
174
this.registerEvents();
175
- this.qrCodeReader
176
- .getVideoInputDevices()
177
- .then(videoInputDevices => {
178
- this.setState({ hasCamera: videoInputDevices.length > 0 });
179
- });
+ const account = this.getAccount();
+ if (account && !account.coinCode.startsWith('eth-erc20-') && account.coinCode !== 'eth') {
+ this.qrCodeReader
+ .getVideoInputDevices()
+ .then(videoInputDevices => {
180
+ this.setState({ hasCamera: videoInputDevices.length > 0 });
181
+ });
182
+ }
183
}
184
185
public componentWillUnmount() {
0 commit comments