Skip to content

Commit 9e4dfc3

Browse files
committed
fix: eslint problems
1 parent e3eabc9 commit 9e4dfc3

File tree

1 file changed

+6
-6
lines changed
  • wallet/src/components/BridgeComponent

1 file changed

+6
-6
lines changed

‎wallet/src/components/BridgeComponent/index.jsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useContext, useState, useEffect, createRef } from 'react';
1+
import React, { useContext, useState, useEffect } from 'react';
22
import Modal from 'react-bootstrap/Modal';
33
import { toast } from 'react-toastify';
44
import { useHistory } from 'react-router-dom';
@@ -148,8 +148,6 @@ const BridgeComponent = () => {
148148

149149
const [showTokensListModal, setShowTokensListModal] = useState(false);
150150

151-
const inputRef = createRef();
152-
153151
useEffect(() => {
154152
if (document.getElementById('inputValue')) {
155153
document.getElementById('inputValue').value = 0;
@@ -355,14 +353,16 @@ const BridgeComponent = () => {
355353
}, [token, txType, accountInstance]);
356354

357355
const updateInputValue = () => {
358-
const inputElement = document.querySelector('nightfall-app').shadowRoot.getElementById('inputValue');
356+
const inputElement = document
357+
.querySelector('nightfall-app')
358+
.shadowRoot.getElementById('inputValue');
359359
if (txType === 'deposit') {
360360
inputElement.value = new BigFloat(l1Balance, token.decimals).toFixed(4);
361361
setTransferValue(l1Balance);
362362
return;
363363
}
364364
inputElement.value = new BigFloat(l2Balance, token.decimals).toFixed(4);
365-
setTransferValue(l2Balance);
365+
setTransferValue(l2Balance);
366366
};
367367

368368
return (
@@ -425,7 +425,7 @@ const BridgeComponent = () => {
425425
<Input
426426
id="inputValue"
427427
name="price"
428-
placeholder="0.00"
428+
placeholder="0.00"
429429
onKeyDown={e => {
430430
if (
431431
(transferValue.toString().split('.')[1]?.length ?? 0) > 3 &&

0 commit comments

Comments
 (0)