Skip to content

Commit 72788be

Browse files
authored
Merge branch 'develop' into ft-minimize-dashboard-menu
2 parents d7d4517 + 9c3925e commit 72788be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/form/RegisterForm.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { HiOutlineExclamationCircle } from "react-icons/hi"
1515
import { Toasty } from "../Toasty/Toasty";
1616
import axios from "axios";
1717
import Datalist from "../ReusableComponents/DataList";
18+
import { showErrorToast } from "utils/toast";
1819

1920
interface Country {
2021
name: string;
@@ -118,6 +119,12 @@ function SignupForm() {
118119
error.includes("email_1 dup key")
119120
) {
120121
showToast("Email already exists. Please sign in.", "error");
122+
} else if (
123+
error.includes(
124+
"Telephone number already exists. Please use a different number."
125+
)
126+
) {
127+
showToast("This telephone number is already in use.", "error");
121128
} else {
122129
showToast(error, "error");
123130
}

0 commit comments

Comments
 (0)