1
0
Fork 0

fix: handle user action errors correctly

fix-1
Lea 2023-07-27 18:13:28 +02:00
parent 2c3ee300c5
commit 62d567eac1
1 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ export function UserActions({
.catch((err) => .catch((err) =>
toast({ toast({
title: "Failed to suspend user!", title: "Failed to suspend user!",
description: err, description: String(err),
variant: "destructive", variant: "destructive",
}) })
) )
@ -97,7 +97,7 @@ export function UserActions({
.catch((err) => .catch((err) =>
toast({ toast({
title: "Failed to ban user!", title: "Failed to ban user!",
description: err, description: String(err),
variant: "destructive", variant: "destructive",
}) })
) )
@ -155,7 +155,7 @@ export function UserActions({
.catch((err) => .catch((err) =>
toast({ toast({
title: "Failed to send alert!", title: "Failed to send alert!",
description: err, description: String(err),
variant: "destructive", variant: "destructive",
}) })
); );