Skip to content

Commit

Permalink
Fix hidden price
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrimaud committed May 14, 2024
1 parent ef2ee07 commit ea6b8d5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Bitcoin/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ public function data(
$position = 0;
$frames = [];

// set $ position
if ($symbolPosition === self::POSITION_BEFORE) {
$price = $symbol . $price;
} else if ($symbolPosition === self::POSITION_AFTER) {
$price = $price . $symbol;
}

if ($price) {
// set currency position
if ($symbolPosition === self::POSITION_BEFORE) {
$price = $symbol . $price;
} else if ($symbolPosition === self::POSITION_AFTER) {
$price = $price . $symbol;
}

$frames = array_merge($frames, [
[
'index' => $position,
Expand Down

0 comments on commit ea6b8d5

Please sign in to comment.