better name

This commit is contained in:
Hailey
2024-04-29 22:45:58 -07:00
parent 9cfbbe9512
commit 23a113e817
+2 -2
View File
@@ -25,7 +25,7 @@ export function sanitizeHandle(handle: string, prefix = ''): string {
return isInvalidHandle(handle) ? '⚠Invalid Handle' : `${prefix}${handle}`
}
type ValidHandleResult =
type ValidateHandleResult =
| 'charsError'
| 'hyphenError'
| 'frontLengthError'
@@ -36,7 +36,7 @@ type ValidHandleResult =
export function validateHandle(
str: string,
userDomain: string,
): ValidHandleResult {
): ValidateHandleResult {
const fullHandle = createFullHandle(str, userDomain)
if (str.length < 3) {