Closed jernejk closed 10 months ago
Describe the bug Attempting to register at https://portal.brisbanemaker.space/register without filling out the vehicle registration will result in a null ref on validation.
null ref
To Reproduce Steps to reproduce the behavior:
Expected behavior We should be able to register without needing to enter optional fields.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context If vehicle registration is not set, the value on line 29 in file formMixin.ts will throw a null reference exception.
value
formMixin.ts
I think the code fix would be: return !value || value.toString().length <= 30;
return !value || value.toString().length <= 30;
But I'm a bit rusty on TS/React.
Describe the bug Attempting to register at https://portal.brisbanemaker.space/register without filling out the vehicle registration will result in a
null ref
on validation.To Reproduce Steps to reproduce the behavior:
Expected behavior We should be able to register without needing to enter optional fields.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context If vehicle registration is not set, the
value
on line 29 in fileformMixin.ts
will throw a null reference exception.I think the code fix would be:
return !value || value.toString().length <= 30;
But I'm a bit rusty on TS/React.