diff --git a/portal-ui/src/screens/Console/Common/CredentialsPrompt/CredentialsPrompt.tsx b/portal-ui/src/screens/Console/Common/CredentialsPrompt/CredentialsPrompt.tsx index d9a1a87ac..89eb9b5a3 100644 --- a/portal-ui/src/screens/Console/Common/CredentialsPrompt/CredentialsPrompt.tsx +++ b/portal-ui/src/screens/Console/Common/CredentialsPrompt/CredentialsPrompt.tsx @@ -15,6 +15,7 @@ // along with this program. If not, see . import React from "react"; +import get from "lodash/get"; import { createStyles, Theme, withStyles } from "@material-ui/core/styles"; import { NewServiceAccount } from "./types"; import { Button } from "@material-ui/core"; @@ -67,6 +68,8 @@ const CredentialsPrompt = ({ return null; } + const consoleCreds = get(newServiceAccount, "console", null); + return ( Secret Key: {newServiceAccount.secretKey} + {consoleCreds && ( + + + Console Credentials +
    +
  • + Access Key: {consoleCreds.accessKey} +
  • +
  • + Secret Key: {consoleCreds.secretKey} +
  • +
+
+
+ )}