Skip to content

Commit

Permalink
Small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Cousins committed Mar 29, 2021
1 parent c2f0af7 commit 75c154a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ExpoPushNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ public function dispatch($pushNotification): array
'Accept' => 'application/json',
'Accept-encoding' => 'gzip, deflate',
'Content-Type' => 'application/json'
])->post("$this->baseUrl/send", (array)$pushNotification);
return $response->json()['data'];
])->post("{$this->baseUrl}/send", (array)$pushNotification);
$responseJson = $response->json();
return $responseJson['data'] ?? [];
}

public function fetchReceipts(array $tickets): array
Expand Down

0 comments on commit 75c154a

Please sign in to comment.