Skip to content

Commit 44fee51

Browse files
committed
Api do Google trocou os parametros de retorno - adaptando
1 parent 323bd56 commit 44fee51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/components/index/Body/UnAuth/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import GoogleLogin from 'react-google-login'
1010
export default function UnAuthComponent({ RequestLogin, meta: { alert }, setMeta }){
1111

1212
const ChangeLoginGoogle = (result) => {
13-
if(result?.error){
13+
if(result.error){
1414
setMeta(prev => ({...prev, alert: {
1515
type: 'err',
1616
message: 'Ocorreu um erro :('
1717
}}))
1818
}
1919
else{
20-
const { mt: { Re: name, Xt: email, nK: image } } = result
20+
const { profileObj: { name, email, imageUrl: image } } = result
2121

2222
const data = {
2323
name,

0 commit comments

Comments
 (0)