add an .env.example file and fix lint warnings

This commit is contained in:
RcleydsonR
2022-12-12 17:05:50 -03:00
parent dbfeb7017f
commit 5f753a62ca
6 changed files with 18 additions and 13 deletions

View File

@@ -32,8 +32,6 @@ const confirmBuyClick = async ({ selectedDeposit, tokenValue }: any) => {
await blockchain
.mapDeposits(depositId)
.then((deposit) => (depositDetail = deposit));
console.log(tokenValue);
console.log('aqui', depositDetail);
tokens.value = tokenValue;
pixTarget.value = depositDetail?.pixTarget;
@@ -42,7 +40,7 @@ const confirmBuyClick = async ({ selectedDeposit, tokenValue }: any) => {
flowStep.value = Step.Buy;
etherStore.setLoadingLock(true);
await blockchain.addLock(depositId, tokenValue).catch((_error) => {
await blockchain.addLock(depositId, tokenValue).catch(() => {
flowStep.value = Step.Search;
});
@@ -67,14 +65,17 @@ const confirmBuyClick = async ({ selectedDeposit, tokenValue }: any) => {
</script>
<template>
<SearchComponent v-if="(flowStep == Step.Search)" @token-buy="confirmBuyClick" />
<div v-if="(flowStep == Step.Buy)">
<SearchComponent
v-if="flowStep == Step.Search"
@token-buy="confirmBuyClick"
/>
<div v-if="flowStep == Step.Buy">
<QrCodeComponent
:pixTarget="pixTarget"
:tokenValue="tokens"
v-if="!loadingLock"
/>
<ValidationComponent v-if="loadingLock"/>
<ValidationComponent v-if="loadingLock" />
</div>
</template>