fix: ts type

This commit is contained in:
beilunyang
2025-10-13 01:02:54 +08:00
parent d175017b51
commit 048d9219d0
2 changed files with 2 additions and 2 deletions

View File

@@ -241,7 +241,7 @@ export function EmailList({ onEmailSelect, selectedEmailId }: EmailListProps) {
<AlertDialogHeader>
<AlertDialogTitle>{t("deleteConfirm")}</AlertDialogTitle>
<AlertDialogDescription>
{t("deleteDescription", { email: emailToDelete?.address })}
{t("deleteDescription", { email: emailToDelete?.address || "" })}
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>

View File

@@ -283,7 +283,7 @@ export function MessageList({ email, messageType, onMessageSelect, selectedMessa
<AlertDialogHeader>
<AlertDialogTitle>{tList("deleteConfirm")}</AlertDialogTitle>
<AlertDialogDescription>
{tList("deleteDescription", { email: messageToDelete?.subject })}
{tList("deleteDescription", { email: messageToDelete?.subject || "" })}
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>