Merge pull request #199 from j122j/fix-out-of-credits

Fix division by zero
This commit is contained in:
AVMG 2021-09-25 10:36:54 +02:00 committed by GitHub
commit ab9407baa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,6 +67,7 @@
</div>
<!-- /.col -->
@if($useage > 0)
<div class="col-12 col-sm-6 col-md-3">
<div class="info-box mb-3">
@if(number_format((Auth::user()->Credits()*30)/$useage,0,'.','') >= 15)
@ -91,6 +92,7 @@
<!-- /.info-box -->
</div>
<!-- /.col -->
@endif
</div>