Fix division by Zero in pireps/show.blade.php (#1493)

* Fix division by Zero in pireps/show.blade.php

Division by Zero caused by possible null distance fixed by adding check.

* Update show.blade.php

* Update show.blade.php

* Update show.blade.php

Final form :)
This commit is contained in:
fagidutt 2022-11-03 17:11:57 +01:00 committed by GitHub
parent 41bd325f9a
commit 00918f54aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,7 @@
</div>
</div>
@if(!empty($pirep->distance))
<div class="row">
<div class="col-12">
<div class="progress" style="margin: 20px 0;">
@ -82,6 +83,7 @@
</div>
</div>
</div>
@endif
<div class="row">
<div class="col-12">