Skip to content

Commit

Permalink
Merge pull request #18 from Amira1502/fix-front
Browse files Browse the repository at this point in the history
Remove Redundant **await** Statements
  • Loading branch information
gagdiez authored Jan 14, 2025
2 parents 4e1f8a5 + 1ec59bb commit ec39583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontends/03-frontend/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function Home() {

useEffect(() => {
const getNftInfo = async () => {
const data = await await wallet.viewMethod({
const data = await wallet.viewMethod({
contractId: auctionInfo.nft_contract,
method: "nft_token",
args: { token_id: auctionInfo.token_id }
Expand All @@ -74,7 +74,7 @@ export default function Home() {

useEffect(() => {
const getFtInfo = async () => {
const ftInfo = await await wallet.viewMethod({
const ftInfo = await wallet.viewMethod({
contractId: auctionInfo.ft_contract,
method: "ft_metadata",
});
Expand Down

0 comments on commit ec39583

Please sign in to comment.