Fix TypeScript error in qrDataValidator - use issues instead of errors
All checks were successful
Build and Push Docker Images / docker (push) Successful in 2m19s
All checks were successful
Build and Push Docker Images / docker (push) Successful in 2m19s
Zod v3 uses 'issues' property instead of 'errors' for ZodError. This fixes the production build failure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
09eb2d3781
commit
2c86863845
@ -79,7 +79,7 @@ export function validateQRData(data: unknown): QRValidationResult {
|
|||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof z.ZodError) {
|
if (error instanceof z.ZodError) {
|
||||||
const errorMessages = error.errors.map((err) => {
|
const errorMessages = error.issues.map((err) => {
|
||||||
const path = err.path.join('.');
|
const path = err.path.join('.');
|
||||||
return `${path ? path + ': ' : ''}${err.message}`;
|
return `${path ? path + ': ' : ''}${err.message}`;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user