浏览代码

Null pointer

Samson Mutunga 3 年之前
父节点
当前提交
1349b848fc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      resources/views/app/patient/coverage_column_renderer.blade.php

+ 2 - 2
resources/views/app/patient/coverage_column_renderer.blade.php

@@ -36,12 +36,12 @@
         <small class="ml-2 text-muted">(No insurance)</small>
     @endif
 </div>
-@if($coverage->plan_type === 'MEDICARE')
+@if($coverage && $coverage->plan_type === 'MEDICARE')
     @if(@$patient->mpb_remaining !== null)
         <small class="text-muted d-block ml-3">Deductible: {{format_number(@$patient->mpb_remaining)}} </small>
     @endif
 @endif
-@if($coverage->plan_type === 'COMMERCIAL')
+@if($coverage && $coverage->plan_type === 'COMMERCIAL')
     @if(@$coverage->deductable_amount !== null)
         <small class="text-muted d-block ml-3">Deductible: {{format_number(@$coverage->deductable_amount)}} </small>
     @endif