Skip to content

Commit

Permalink
rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
Linecom233 committed Jul 16, 2024
1 parent 99e9998 commit c0be59a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MeowBili/Others/LoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ struct LoginView: View {
}
})
.onChange(of: countryCode, perform: { _ in
PhoneFormat = PhoneFormatter(region: countryCode)
PhoneFormat = phoneFormatter(region: countryCode)
if countryCode == "us" || countryCode == "ca" {
displayCC = "1"
} else {
Expand Down Expand Up @@ -629,7 +629,7 @@ struct LoginView: View {
loginToken = respJson["data"]["token"].string!
}
}
PhoneFormat = PhoneFormatter(region: countryCode)
PhoneFormat = phoneFormatter(region: countryCode)
if countryCode == "us" || countryCode == "ca" {
displayCC = "1"
} else {
Expand Down
2 changes: 1 addition & 1 deletion MeowBili/Others/PhoneFormatterExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import Foundation

func PhoneFormatter(region: String) -> String {
func phoneFormatter(region: String) -> String {
switch region {
case "" :
return "手机号码"
Expand Down

0 comments on commit c0be59a

Please sign in to comment.