This commit is contained in:
James Cole 2019-03-01 17:56:52 +01:00
parent 3379b723cf
commit 143fe2a71f

View File

@ -246,7 +246,7 @@ class Amount
// could still be json encoded:
if (\strlen($currencyCode) > 3) {
$currencyCode = null === json_decode($currencyCode) ? 'EUR' : $currencyCode;
$currencyCode = json_decode($currencyCode) ?? 'EUR';
}
$currency = TransactionCurrency::where('code', $currencyCode)->first();