Skip to content

Commit c0fcbbb

Browse files
committed
fix: replace alert() with toast.error() in ExportPanel download error handler
1 parent 9b64cab commit c0fcbbb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/customize/components/ExportPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useState } from 'react';
2+
import { toast } from 'sonner';
23
import type { ReactElement } from 'react';
34
import type { ExportFormat } from '../types';
45
import { getPlaceholderSnippet } from '../utils';
@@ -114,7 +115,7 @@ export function ExportPanel({
114115
URL.revokeObjectURL(downloadUrl);
115116
} catch (error) {
116117
console.error('Failed to download custom vector badge image asset:', error);
117-
alert('Failed to download the badge asset directly from the server pipeline.');
118+
toast.error('Failed to download badge. Please try again.');
118119
} finally {
119120
setIsDownloading(false);
120121
}

0 commit comments

Comments
 (0)