Clarify cross-site signup messaging and pass domain on login.

Also strengthen the businesses three-dot menu glass background.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-10 01:02:49 +03:30
co-authored by Cursor
parent debca2cf99
commit 855f337006
5 changed files with 38 additions and 16 deletions
+12 -2
View File
@@ -108,8 +108,18 @@ export function LoginPage() {
err.message.includes('Unable to send SMS')
) {
setError(t('login.error.smsProvider'))
} else if (err.message.includes('Cell number exists on another account')) {
setError(t('signup.error.cellExists'))
} else if (
err.message.includes('CELL_EXISTS_OTHER_SITE:') ||
err.message.includes('Cell number exists on another account')
) {
const sites = err.message.startsWith('CELL_EXISTS_OTHER_SITE:')
? err.message.slice('CELL_EXISTS_OTHER_SITE:'.length).trim()
: ''
setError(
sites
? t('signup.error.cellExists', { sites })
: t('signup.error.cellExistsGeneric'),
)
} else {
setError(err.message)
}