Adding comment on getRemaining function

This commit is contained in:
brunoedcf
2023-02-13 21:24:37 -03:00
부모 cf9760bb21
커밋 3aae98bb44

파일 보기

@@ -33,6 +33,8 @@ const callWithdraw = async () => {
const getRemaining = (): number => { const getRemaining = (): number => {
if (props.depositList instanceof Array) { if (props.depositList instanceof Array) {
// 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]; const deposit = props.depositList[0];
return deposit ? deposit.remaining : 0; return deposit ? deposit.remaining : 0;
} }