Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jun 17, 2024
1 parent 672e689 commit da471cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/(pages)/patient/components/ProfileSettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ export default function ProfileSettings({ patient }: { patient: Patient }) {
const regex = /^\d{10}$/;
const isContactValid = regex.test(e.target.value);

setContactError(isContactValid ? "" : "Phone must be 10");
setContactError(
isContactValid ? "" : "Please enter a 10-digit phone number"
);
setContact(e.target.value);
};

Expand Down Expand Up @@ -442,7 +444,7 @@ export default function ProfileSettings({ patient }: { patient: Patient }) {
onBlur={() => showToast(passwordRef)}
/>
<Input
name="phone"
name="contact"
type="text"
variant="underlined"
label="Phone"
Expand Down

0 comments on commit da471cc

Please sign in to comment.