Skip to content

Commit 5233c7c

Browse files
committed
Merge remote-tracking branch 'benma/disableqr'
2 parents f595cd6 + 7a9ee62 commit 5233c7c

File tree

1 file changed

+8
-5
lines changed
  • frontends/web/src/routes/account/send

1 file changed

+8
-5
lines changed

frontends/web/src/routes/account/send/send.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,14 @@ class Send extends Component<Props, State> {
172172

173173
public componentWillMount() {
174174
this.registerEvents();
175-
this.qrCodeReader
176-
.getVideoInputDevices()
177-
.then(videoInputDevices => {
178-
this.setState({ hasCamera: videoInputDevices.length > 0 });
179-
});
175+
const account = this.getAccount();
176+
if (account && !account.coinCode.startsWith('eth-erc20-') && account.coinCode !== 'eth') {
177+
this.qrCodeReader
178+
.getVideoInputDevices()
179+
.then(videoInputDevices => {
180+
this.setState({ hasCamera: videoInputDevices.length > 0 });
181+
});
182+
}
180183
}
181184

182185
public componentWillUnmount() {

0 commit comments

Comments
 (0)