Skip to content

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

core: fix type definition

Abdullah Attaa8f5dea3154a
diff --git a/packages/core/src/api/user-manager.ts b/packages/core/src/api/user-manager.ts
index 734cefed6..eef5bd414 100644
--- a/packages/core/src/api/user-manager.ts
+++ b/packages/core/src/api/user-manager.ts
@@ -411,7 +411,7 @@ class UserManager {
}
}
- async sendVerificationEmail(newEmail: string) {
+ async sendVerificationEmail(newEmail?: string) {
const token = await this.tokenManager.getAccessToken();
if (!token) return;
await http.post(