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 6f5acdbc19
commit 32c7118cf8

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; return $lbcUsdPrice;
} }