File tree 1 file changed +5
-2
lines changed
services/web-ui/src/features/settings/pages/SettingsPage
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,18 @@ export function SettingsPageContainer(): ReactElement {
19
19
20
20
const deleteAccountMutation = useMutation ( {
21
21
onError : ( error ) => {
22
- logger . error ( "Failed to enable notifications " , { error } ) ;
22
+ logger . error ( "Failed to delete account " , { error } ) ;
23
23
snackbar . error ( t ( "danger-zone.delete-account.error" ) ) ;
24
24
} ,
25
25
onSuccess : ( ) => snackbar . success ( t ( "danger-zone.delete-account.success" ) ) ,
26
26
mutationFn : ( ) => profileApi . deleteCurrentProfile ( ) ,
27
27
} ) ;
28
28
29
29
const enableNotificationsMutation = useMutation ( {
30
- onError : ( ) => snackbar . error ( t ( "notifications.enable.error" ) ) ,
30
+ onError : ( error ) => {
31
+ logger . error ( "Failed to enable notifications" , { error } ) ;
32
+ snackbar . error ( t ( "notifications.enable.error" ) ) ;
33
+ } ,
31
34
onSuccess : ( ) => snackbar . success ( t ( "notifications.enable.success" ) ) ,
32
35
mutationFn : async ( ) => {
33
36
await Notification . requestPermission ( ) ;
You can’t perform that action at this time.
0 commit comments