Minor code update

Minor code update
This commit is contained in:
cp6 2022-10-20 11:12:53 +11:00
parent 17b7733258
commit 736b6c9479

View File

@ -48,7 +48,7 @@ class Pricing extends Model
private static function getRates($currency): float
{
$rate = self::refreshRates()->$currency;
return $rate === null ? 1.00 : $rate;
return $rate ?? 1.00;
}
public static function getCurrencyList(): array