fix: bulk progress log shows generic error instead of backend message

The live ProgressView log used entry.error (never sent by backend)
instead of entry.message, falling back to a generic i18n string.
Now checks entry.message first to display the actual error from
the backend (e.g. "No subscription found").
This commit is contained in:
Fringg
2026-04-24 05:15:13 +03:00
parent fc8170fa1f
commit 8dd5e4985f

View File

@@ -332,7 +332,7 @@ function ProgressView({ progress }: { progress: ProgressState }) {
<span className={entry.success ? 'text-dark-300' : 'text-error-300'}> <span className={entry.success ? 'text-dark-300' : 'text-error-300'}>
{entry.success {entry.success
? entry.message || t('admin.bulkActions.progress.ok') ? entry.message || t('admin.bulkActions.progress.ok')
: entry.error || t('admin.bulkActions.progress.errorGeneric')} : entry.message || entry.error || t('admin.bulkActions.progress.errorGeneric')}
</span> </span>
</div> </div>
))} ))}