Set distance to null instead of 0
This commit is contained in:
parent
1758011412
commit
7f485cee91
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class OfferController extends AbstractController
|
||||||
#[Route('/offer/{id}', name: 'show_offer')]
|
#[Route('/offer/{id}', name: 'show_offer')]
|
||||||
public function showOffer(Offering $offer, WishRepository $wishRepository, PlzToCoordinate $plzconverter, DistanceCalculator $distanceCalculator): Response
|
public function showOffer(Offering $offer, WishRepository $wishRepository, PlzToCoordinate $plzconverter, DistanceCalculator $distanceCalculator): Response
|
||||||
{
|
{
|
||||||
$distance = 0;
|
$distance = null;
|
||||||
$user = $this->getUser();
|
$user = $this->getUser();
|
||||||
$offerPlz = $offer->getZipCode();
|
$offerPlz = $offer->getZipCode();
|
||||||
|
|
||||||
|
|
Reference in a new issue