From ac7447410771968afdc5741405f7d59c886eec68 Mon Sep 17 00:00:00 2001 From: Daniel Siemens Date: Mon, 25 Nov 2024 14:44:42 -0800 Subject: [PATCH] fix: data is optional on setPreference --- src/services/user-preferences/user-preferences.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/user-preferences/user-preferences.ts b/src/services/user-preferences/user-preferences.ts index 1b4c2992b..29b1d7c83 100644 --- a/src/services/user-preferences/user-preferences.ts +++ b/src/services/user-preferences/user-preferences.ts @@ -47,7 +47,7 @@ export class UserPreferencesService { return userPreference.optedIn } - public async setPreference(userPreferenceId: TUserPreferenceId, isOptedIn: boolean, data: unknown): Promise { + public async setPreference(userPreferenceId: TUserPreferenceId, isOptedIn: boolean, data?: unknown): Promise { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error const { allowedScope } = this.definitions[userPreferenceId]