Skip to content

Commit

Permalink
Change apartment floor input to allow dashes etc
Browse files Browse the repository at this point in the history
  • Loading branch information
indigane committed Jul 24, 2024
1 parent bc04817 commit 1d34436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/common/schemas/apartment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export type SurfaceAreaPriceCeilingCalculation = z.infer<typeof SurfaceAreaPrice

export const ApartmentAddressSchema = AddressSchema.extend({
apartment_number: writableRequiredNumber,
floor: nullishNumber,
floor: string().nullable(),
stair: string().min(1, "Pakollinen kenttä!"),
});
export type IApartmentAddress = z.infer<typeof ApartmentAddressSchema>;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/apartment/ApartmentCreatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ const LoadedApartmentCreatePage = () => {
/>
</div>
<div className="row">
<NumberInput
<TextInput
name="address.floor"
label="Kerros"
/>
Expand Down

0 comments on commit 1d34436

Please sign in to comment.