Skip to content

Commit

Permalink
Fix default currency
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrimaud committed Aug 3, 2023
1 parent 44159c9 commit a5a6012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bitcoin/Exchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(array $parameters = [])
$exchange = strtolower($parameters['exchange'] ?? '');
$this->name = in_array($exchange, self::ALLOWED_EXCHANGES) ? $exchange : self::ALLOWED_EXCHANGES[0];

$currency = $parameters['currency'] ?? '';
$currency = $parameters['currency'] ?? 'USD';
$this->currency = $this->sanitizeCurrency($currency);

$this->showPrice = !isset($parameters['bitcoin']) || (isset($parameters['bitcoin']) && ($parameters['bitcoin'] === 'true' || $parameters['bitcoin'] === ''));
Expand Down

0 comments on commit a5a6012

Please sign in to comment.