+
+
+ {this.props.fallbackMessage || 'Something went wrong'}
+
+
+ An unexpected error occurred. Please try again.
+
+
+
+ );
+ }
+ return this.props.children;
+ }
+}
diff --git a/frontend/src/components/tools/QrCodeGenerator.tsx b/frontend/src/components/tools/QrCodeGenerator.tsx
index a14e237..7658da8 100644
--- a/frontend/src/components/tools/QrCodeGenerator.tsx
+++ b/frontend/src/components/tools/QrCodeGenerator.tsx
@@ -43,7 +43,7 @@ export default function QrCodeGenerator() {
setError(null);
};
- const downloadUrl = result?.download_url ? `/api${result.download_url}` : null;
+ const downloadUrl = result?.download_url || null;
const schema = generateToolSchema({
name: t('tools.qrCode.title'),
diff --git a/frontend/src/components/tools/RemoveBackground.tsx b/frontend/src/components/tools/RemoveBackground.tsx
index 77a82d8..bc87f90 100644
--- a/frontend/src/components/tools/RemoveBackground.tsx
+++ b/frontend/src/components/tools/RemoveBackground.tsx
@@ -143,6 +143,17 @@ export default function RemoveBackground() {
)}
+ {phase === 'done' && !result && taskError && (
+