🐛 fix(third-party-accounts): Update redirect property name in binding response handling

This commit is contained in:
web@ppanel 2025-02-10 22:51:31 +07:00
parent 1841552b1b
commit 012e83a25c

View File

@ -220,7 +220,7 @@ export default function ThirdPartyAccounts() {
method: account.id,
redirect: `${window.location.origin}/bind/${account.id}`,
});
if (res.data?.data?.url) {
if (res.data?.data?.redirect) {
window.location.href = res.data.data.redirect;
}
}
@ -246,8 +246,9 @@ export default function ThirdPartyAccounts() {
break;
case 'mobile':
displayValue =
`${method?.area_code || ''}${method?.auth_identifier || ''}` ||
t(`${account.id}.description`);
method?.area_code && method?.auth_identifier
? `${method?.area_code || ''} ${method?.auth_identifier || ''}`
: t(`${account.id}.description`);
break;
default:
displayValue = method?.auth_identifier || t(`${account.id}.description`);