diff --git a/src/realm-settings/KeysListTab.tsx b/src/realm-settings/KeysListTab.tsx
index 766bdc59fd..b926fa5c49 100644
--- a/src/realm-settings/KeysListTab.tsx
+++ b/src/realm-settings/KeysListTab.tsx
@@ -62,30 +62,36 @@ export const KeysTabInner = ({ keys }: KeysTabInnerProps) => {
return <>{provider}>;
};
- const renderPublicKeyButton = (publicKey: string) => {
- return (
-
- );
- };
-
const ButtonRenderer = ({ provider, publicKey, certificate }: KeyData) => {
if (provider === "ecdsa-generated") {
- return <>{renderPublicKeyButton(publicKey!)}>;
- }
- if (provider === "rsa-generated" || provider === "fallback-RS256") {
+ return (
+ <>
+
+ >
+ );
+ } else if (provider === "rsa-generated" || provider === "fallback-RS256") {
return (
<>
- {renderPublicKeyButton(publicKey!)}
+