File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import { getAuthenticatedUser } from "../firebase";
2626import * as ServerConfiguration from "../ape/server-configuration" ;
2727import * as AuthEvent from "../observables/auth-event" ;
2828import { Connection } from "@monkeytype/schemas/connections" ;
29- import { Friend } from "@monkeytype/schemas/users" ;
29+ import { Friend , UserNameSchema } from "@monkeytype/schemas/users" ;
3030import * as Loader from "../elements/loader" ;
3131
3232const pageElement = $ ( ".page.pageFriends" ) ;
@@ -73,6 +73,7 @@ const addFriendModal = new SimpleModal({
7373 type : "text" ,
7474 initVal : "" ,
7575 validation : {
76+ schema : UserNameSchema ,
7677 isValid : async ( name : string ) => {
7778 const checkNameResponse = await Ape . users . getNameAvailability ( {
7879 params : { name : name } ,
You can’t perform that action at this time.
0 commit comments