fix settings hydration error

This commit is contained in:
keyan 2023-07-30 14:38:50 -05:00
parent d04dc691df
commit 63a4a7acad
1 changed files with 2 additions and 1 deletions

View File

@ -353,7 +353,8 @@ function AuthMethods ({ methods }) {
}
)
const providers = Object.keys(methods).filter(k => k !== '__typename')
// sort to prevent hydration mismatch
const providers = Object.keys(methods).filter(k => k !== '__typename').sort()
const unlink = async type => {
// if there's only one auth method left