diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 9ff1549..3123f23 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,2 @@ github: ["h4kuna"] -custom: ["https://revolut.me/milan2m/czk1000/library"] +custom: ["https://revolut.me/milan2m/czk1000/exchange"] diff --git a/src/Exchange.php b/src/Exchange.php index f19e204..e7deaa5 100644 --- a/src/Exchange.php +++ b/src/Exchange.php @@ -49,6 +49,7 @@ public function modify(?string $to = null, ?string $from = null, ?CacheEntity $c $exchange->ratingList = $this->ratingList->modify($cacheEntity); } + // add currency code instead of Property, because load new data from cache $exchange->setFrom($from ?? $this->from->code); $exchange->setTo($to ?? $this->to->code);