diff --git a/web/src/views/dashboard/authKeys/AuthKeysView.tsx b/web/src/views/dashboard/authKeys/AuthKeysView.tsx index 72933e9..94ce31d 100644 --- a/web/src/views/dashboard/authKeys/AuthKeysView.tsx +++ b/web/src/views/dashboard/authKeys/AuthKeysView.tsx @@ -264,14 +264,6 @@ const AuthKeysView: React.FC = () => { ); } - if (error) { - return ( - - Error: {error} - - ); - } - return ( { margin: "10px", }} > + {/* Common Header */} { - {authKeys.length === 0 ? ( + {/* Conditional Content */} + {error ? ( + + + Error: {error} + + + ) : authKeys.length === 0 ? (