fixed bug

This commit is contained in:
2018-04-27 12:30:21 -06:00
parent 070e3e14aa
commit 0515dd751c
2 changed files with 148 additions and 74 deletions

View File

@@ -69,8 +69,8 @@
if ('error' in myData){document.querySelector('#quandl').textContent = "Error: "+ myData['error']}
else {
var weightValue = myData['value'] * theData.dataset.data[0][1];
var weightValue = parseFloat(weightValue).toFixed(2);
document.querySelector('#quandl').textContent = "Your weight in gold: $"+weightValue;
var weightValue1 = parseFloat(weightValue).toFixed(2);
document.querySelector('#quandl').textContent = "Your weight in gold: $"+weightValue1;
}
};
xhr.send();