Adding comment on getRemaining function
This commit is contained in:
parent
cf9760bb21
commit
3aae98bb44
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user