Skip to content

Commit ec39583

Browse files
authored
Merge pull request #18 from Amira1502/fix-front
Remove Redundant **await** Statements
2 parents 4e1f8a5 + 1ec59bb commit ec39583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontends/03-frontend/src/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function Home() {
5656

5757
useEffect(() => {
5858
const getNftInfo = async () => {
59-
const data = await await wallet.viewMethod({
59+
const data = await wallet.viewMethod({
6060
contractId: auctionInfo.nft_contract,
6161
method: "nft_token",
6262
args: { token_id: auctionInfo.token_id }
@@ -74,7 +74,7 @@ export default function Home() {
7474

7575
useEffect(() => {
7676
const getFtInfo = async () => {
77-
const ftInfo = await await wallet.viewMethod({
77+
const ftInfo = await wallet.viewMethod({
7878
contractId: auctionInfo.ft_contract,
7979
method: "ft_metadata",
8080
});

0 commit comments

Comments
 (0)