Skip to content

Commit

Permalink
fix: fix address pivot (monicahq/chandler#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss committed Feb 3, 2023
1 parent 1b5b1b9 commit 59924a2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -48,7 +48,7 @@ public static function dto(Contact $contact, Address $address, User $user): arra
{
return [
'id' => $address->id,
'is_past_address' => (bool) $address->pivot->is_past_address,
'is_past_address' => $address->pivot ? (bool) $address->pivot->is_past_address : false,
'line_1' => $address->line_1,
'line_2' => $address->line_2,
'city' => $address->city,
Expand Down

0 comments on commit 59924a2

Please sign in to comment.