Adding comment on getRemaining function

This commit is contained in:
brunoedcf 2023-02-13 21:24:37 -03:00
parent cf9760bb21
commit 3aae98bb44

View File

@ -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;