generated from nathanwoodburn/python-webserver-template
feat: Add lending positions
All checks were successful
Build Docker / BuildImage (push) Successful in 36s
All checks were successful
Build Docker / BuildImage (push) Successful in 36s
This commit is contained in:
@@ -164,7 +164,15 @@
|
||||
nameCell.style.padding = '8px 20px';
|
||||
|
||||
const amountCell = document.createElement('td');
|
||||
amountCell.textContent = `${data[token].amount} ${token}`;
|
||||
|
||||
// If token in other investments
|
||||
otherInvestments = ["Lending"]
|
||||
if (otherInvestments.includes(token)) {
|
||||
amountCell.textContent = `${data[token].amount} Positions`;
|
||||
}
|
||||
else {
|
||||
amountCell.textContent = `${data[token].amount} ${token}`;
|
||||
}
|
||||
amountCell.style.border = '1px solid #ccc';
|
||||
amountCell.style.padding = '8px 20px';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user