Skip to content

Commit

Permalink
[Bug] Fixed result reference in speedtest completed mail (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjustesen authored Jun 8, 2024
1 parent 11d000e commit ac0556f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Mail/SpeedtestCompletedMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function content(): Content
'ping' => round($this->result->ping, 2).' ms',
'download' => Number::toBitRate(bits: $this->result->download_bits, precision: 2),
'upload' => Number::toBitRate(bits: $this->result->upload_bits, precision: 2),
'packetLoss' => $event->result->packet_loss,
'packetLoss' => is_numeric($this->result->packet_loss) ? $this->result->packet_loss : 'n/a',
'url' => url('/admin/results'),
],
);
Expand Down
2 changes: 1 addition & 1 deletion resources/views/emails/speedtest-completed.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
| Ping | {{ $ping }} |
| Download | {{ $download }} |
| Upload | {{ $upload }} |
| Packet Loss | {{ $packetLoss }} **%** |
| Packet Loss | {{ $packetLoss }}**%** |

</x-mail::table>

Expand Down

0 comments on commit ac0556f

Please sign in to comment.