Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: don't try to show onboarding if type is undefined

thecodrrfe931f02167f
diff --git a/apps/web/src/common/dialogcontroller.js b/apps/web/src/common/dialogcontroller.js
index eaeefc149..5f348529c 100644
--- a/apps/web/src/common/dialogcontroller.js
+++ b/apps/web/src/common/dialogcontroller.js
@@ -603,6 +603,8 @@ export function showImportDialog() {
}
export function showOnboardingDialog(type) {
+ if (!type) return;
+
return showDialog((Dialogs, perform) => (
<Dialogs.OnboardingDialog type={type} onClose={(res) => perform(res)} />
));