fix error files caused during vercel build step

This commit is contained in:
RcleydsonR 2022-12-16 17:49:43 -03:00
parent c4b74309cc
commit 150a325bdc
4 changed files with 9 additions and 11 deletions

View File

@ -3,10 +3,10 @@ import CustomButton from "@/components/CustomButton.vue";
import blockchain from "../utils/blockchain";
// props
const props = defineProps({
lastWalletReleaseTransactions: Array,
tokenAmount: Number,
});
const props = defineProps<{
lastWalletReleaseTransactions: any[] | undefined;
tokenAmount: Number | undefined;
}>();
// Emits
const emit = defineEmits(["makeAnotherTransaction"]);

View File

@ -1,7 +1,6 @@
import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";
import MockView from "../views/MockView.vue";
import ListView from "../components/ListComponent.vue";
import SellerView from "@/views/SellerView.vue";
const router = createRouter({
@ -22,11 +21,6 @@ const router = createRouter({
name: "mock",
component: MockView,
},
{
path: "/list",
name: "list",
component: ListView,
},
],
});

View File

@ -276,7 +276,7 @@ const addDeposit = async (tokenQty: Number, pixKey: string) => {
};
// Get specific deposit data by its ID
const mapDeposits = async (depositId: BigNumber) => {
const mapDeposits = async (depositId: BigNumber): Promise<any> => {
const provider = getProvider();
if (!provider) return;

View File

@ -32,6 +32,10 @@ const confirmBuyClick = async ({ selectedDeposit, tokenValue }: any) => {
const depositId = selectedDeposit.depositID;
pixTarget.value = selectedDeposit.pixKey;
tokenAmount.value = tokenValue;
// depositId is BigNumber type object
tokenAmount.value = tokenValue;
pixTarget.value = String(depositDetail?.pixTarget);
// Makes lock with deposit ID and the Amount
if (depositDetail) {