diff --git a/lib/towerops_web/live/device_live/show.html.heex b/lib/towerops_web/live/device_live/show.html.heex
index 3c453192..0aff8183 100644
--- a/lib/towerops_web/live/device_live/show.html.heex
+++ b/lib/towerops_web/live/device_live/show.html.heex
@@ -1393,13 +1393,13 @@
-
- {if interface.if_in_octets,
- do: format_bytes(interface.if_in_octets),
+ {if interface.latest_stat && interface.latest_stat.if_in_octets,
+ do: format_bytes(interface.latest_stat.if_in_octets),
else: "-"}
|
- {if interface.if_out_octets,
- do: format_bytes(interface.if_out_octets),
+ {if interface.latest_stat && interface.latest_stat.if_out_octets,
+ do: format_bytes(interface.latest_stat.if_out_octets),
else: "-"}
|