price changed to display N/A when the value is $0.00

This commit is contained in:
Akinwale Ariwodola 2017-08-14 20:58:13 +01:00
parent 7f701f87d5
commit 85926e316f

View file

@ -77,7 +77,7 @@ class MainController extends AppController {
}
}
$lbcUsdPrice = isset($priceInfo->price) ? '$' . $priceInfo->price : 'N/A';
$lbcUsdPrice = (isset($priceInfo->price) && ($priceInfo->price > 0)) ? '$' . $priceInfo->price : 'N/A';
return $lbcUsdPrice;
}