From 0be4a6cd0c65c4bb2e3658da807fa3cdacf3d854 Mon Sep 17 00:00:00 2001 From: Alexandre Neuwald Date: Thu, 19 Dec 2024 14:21:06 +0000 Subject: [PATCH] save to profile true and fix typo --- .../suite-base/src/providers/CurrentLayoutProvider/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/suite-base/src/providers/CurrentLayoutProvider/index.tsx b/packages/suite-base/src/providers/CurrentLayoutProvider/index.tsx index 93e2f3456d..25fbb2ccff 100644 --- a/packages/suite-base/src/providers/CurrentLayoutProvider/index.tsx +++ b/packages/suite-base/src/providers/CurrentLayoutProvider/index.tsx @@ -280,7 +280,7 @@ export default function CurrentLayoutProvider({ return; } - // For some reason, this needs to go befre the setSelectedLayoutId, probably some initialization + // For some reason, this needs to go before the setSelectedLayoutId, probably some initialization const { currentLayoutId } = await getUserProfile(); // Try to load default layouts, before checking to add the fallback "Default". @@ -291,7 +291,7 @@ export default function CurrentLayoutProvider({ // Check if there's a layout specified by app parameter const defaultLayoutFromParameters = layouts.find((l) => l.name === appParameters.defaultLayout); if (defaultLayoutFromParameters) { - await setSelectedLayoutId(defaultLayoutFromParameters.id, { saveToProfile: false }); + await setSelectedLayoutId(defaultLayoutFromParameters.id, { saveToProfile: true }); return; }