From 3aae98bb44f1df298b40c50611140c72f2c069e9 Mon Sep 17 00:00:00 2001 From: brunoedcf Date: Mon, 13 Feb 2023 21:24:37 -0300 Subject: [PATCH] Adding comment on getRemaining function --- src/components/ListingComponent/ListingComponent.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ListingComponent/ListingComponent.vue b/src/components/ListingComponent/ListingComponent.vue index 880cc2f..5f3d18e 100644 --- a/src/components/ListingComponent/ListingComponent.vue +++ b/src/components/ListingComponent/ListingComponent.vue @@ -33,7 +33,9 @@ const callWithdraw = async () => { const getRemaining = (): number => { if (props.depositList instanceof Array) { - const deposit = props.depositList[0]; + // Here we are getting only the first element of the list because + // in this release only the BRL token is being used. + const deposit = props.depositList[0]; return deposit ? deposit.remaining : 0; } return 0;