File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { HiOutlineExclamationCircle } from "react-icons/hi"
1515import { Toasty } from "../Toasty/Toasty" ;
1616import axios from "axios" ;
1717import Datalist from "../ReusableComponents/DataList" ;
18+ import { showErrorToast } from "utils/toast" ;
1819
1920interface 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 }
You can’t perform that action at this time.
0 commit comments