Fix preference thing.

This commit is contained in:
James Cole 2023-10-14 07:04:07 +02:00
parent c3debb1a17
commit c1107fe854
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -323,15 +323,15 @@ class Steam
$balances[$format] = $currentBalance;
app('log')->debug(sprintf(
'%s: transaction in %s(!). Conversion rate is %s. %s %s = %s %s',
$format,
$currency->code,
$rate,
$currency->code,
$transaction['amount'],
$native->code,
$convertedAmount
));
'%s: transaction in %s(!). Conversion rate is %s. %s %s = %s %s',
$format,
$currency->code,
$rate,
$currency->code,
$transaction['amount'],
$native->code,
$convertedAmount
));
}
@ -782,7 +782,7 @@ class Steam
if (!is_string($preference)) {
throw new FireflyException(sprintf('Preference "language" must be a string, but is unexpectedly a "%s".', gettype($preference)));
}
return $preference;
return str_replace('-', '_', $preference);
}
/**