From 7eb580558e91e74db6f19a832e3337b44c020bbc Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 16 Feb 2021 12:54:01 +0100 Subject: [PATCH] logout --- packages/dashboard/src/components/Form/Message.js | 3 +-- packages/dashboard/src/pages/recovery.js | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/dashboard/src/components/Form/Message.js b/packages/dashboard/src/components/Form/Message.js index b1585b33..e8ebb7e8 100644 --- a/packages/dashboard/src/components/Form/Message.js +++ b/packages/dashboard/src/components/Form/Message.js @@ -27,8 +27,7 @@ const types = { }, }; -export default function Message({ type, title, items = [] }) { - console.log("------", type, types[type]); +export default function Message({ type = "info", title, items = [] }) { const { backgroundColor, titleColor, detailsColor, iconColor, icon } = types[type]; return ( diff --git a/packages/dashboard/src/pages/recovery.js b/packages/dashboard/src/pages/recovery.js index a9383ce3..79d35b12 100644 --- a/packages/dashboard/src/pages/recovery.js +++ b/packages/dashboard/src/pages/recovery.js @@ -24,6 +24,10 @@ export async function getServerSideProps(context) { try { const { status, data } = await kratos.getSelfServiceRecoveryFlow(flow); + console.log("================================================================"); + console.log(flow); + console.log("================================================================"); + if (status === 200) return { props: { flow: data } }; throw new Error(`Failed to retrieve flow ${flow} with code ${status}`);