Various code cleanup.

This commit is contained in:
James Cole
2018-03-25 09:01:43 +02:00
parent dd9694890a
commit 6660306ac4
46 changed files with 327 additions and 121 deletions

View File

@@ -149,7 +149,11 @@ function updateNativeAmount(data) {
countConversions++;
return;
}
$('#ffInput_native_amount').val(data.amount);
console.log('Returned amount is: ' + data.amount);
if (data.amount !== 0) {
$('#ffInput_native_amount').val(data.amount);
}
}
/**
@@ -225,5 +229,9 @@ function convertSourceToDestination() {
* @param data
*/
function updateDestinationAmount(data) {
$('#ffInput_destination_amount').val(data.amount);
console.log('Returned amount is: ' + data.amount);
if (data.amount !== 0) {
$('#ffInput_destination_amount').val(data.amount);
}
}