Fix TypeScript errors

Addresses TypeScript errors related to toast implementation and type definitions.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 09:15:27 +00:00
parent 7ab79d125e
commit 7b50054da4
6 changed files with 23 additions and 17 deletions

View File

@@ -9,5 +9,9 @@ export const showAuthToast = (
description: string,
variant: 'default' | 'destructive' = 'default'
) => {
toast({ title, description, variant });
toast({
title,
description,
...(variant === 'destructive' ? { variant: 'destructive' } : {})
});
};