diff --git a/LANCommander/Components/KeysEditor.razor b/LANCommander/Components/KeysEditor.razor
index cc8dc5c..8c9f1f7 100644
--- a/LANCommander/Components/KeysEditor.razor
+++ b/LANCommander/Components/KeysEditor.razor
@@ -1,53 +1,58 @@
@inject KeyService KeyService
@inject IMessageService MessageService
-
-
-
-
-
-
-
-
-
-
-
+@if (Keys != null)
+{
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
- @switch (context.AllocationMethod)
- {
- case KeyAllocationMethod.MacAddress:
- @context.ClaimedByMacAddress
- break;
+
+
+
+
+
+
+
+ @switch (context.AllocationMethod)
+ {
+ case KeyAllocationMethod.MacAddress:
+ @context.ClaimedByMacAddress
+ break;
+
+ case KeyAllocationMethod.UserAccount:
+ @context.ClaimedByUser?.UserName
+ break;
+ }
+
+
+
+
+
+ @if (context.IsAllocated())
+ {
+
+ }
+
+
+
+
+
+
+
+
+
+}
- case KeyAllocationMethod.UserAccount:
- @context.ClaimedByUser?.UserName
- break;
- }
-
-
-
-
-
- @if (context.IsAllocated())
- {
-
- }
-
-
-
-
-
-
-
-