Skip to content

Commit

Permalink
fix: payment method on null
Browse files Browse the repository at this point in the history
  • Loading branch information
amrron committed Oct 27, 2024
1 parent aa91dac commit a8f7816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Resources/UserTransactionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function toArray(Request $request): array
return [
'id' => $this->id,
'nama_paket' => $this->subscription->name,
'metode_pembayaran' => $this->payment_method,
'metode_pembayaran' => $this->payment_method ?? '-',
'no_transaksi' => $this->order_id,
'jumlah_bayar' => $this->gross_amount,
'status' => $this->status,
Expand Down

0 comments on commit a8f7816

Please sign in to comment.