Validation error
This commit is contained in:
@@ -173,7 +173,7 @@ export default function CreatePage() {
|
||||
case 'FEEDBACK':
|
||||
return content.feedbackUrl || 'https://example.com/feedback';
|
||||
case 'BARCODE':
|
||||
return content.value || '123456789';
|
||||
return content.value || '';
|
||||
default:
|
||||
return 'https://example.com';
|
||||
}
|
||||
@@ -1062,6 +1062,7 @@ export default function CreatePage() {
|
||||
qrContent ? (
|
||||
<div className="p-2 bg-white">
|
||||
<Barcode
|
||||
key={`${qrContent}-${content.format}-${foregroundColor}`}
|
||||
value={qrContent}
|
||||
format={content.format || 'CODE128'}
|
||||
lineColor={foregroundColor}
|
||||
|
||||
Reference in New Issue
Block a user