From 736b6c94796dcca61f0fa23417cca0758cb55ae2 Mon Sep 17 00:00:00 2001 From: cp6 Date: Thu, 20 Oct 2022 11:12:53 +1100 Subject: [PATCH] Minor code update Minor code update --- app/Models/Pricing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Pricing.php b/app/Models/Pricing.php index 867d9c3..4ecfa3d 100644 --- a/app/Models/Pricing.php +++ b/app/Models/Pricing.php @@ -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