mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
Minor code update
Minor code update
This commit is contained in:
parent
17b7733258
commit
736b6c9479
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user