Skip to content

Commit

Permalink
fix: google drive showing connected even on abort action (#12040)
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv authored Dec 14, 2023
1 parent bd62c6f commit e15757f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/bot-web-ui/src/stores/google-drive-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ export default class GoogleDriveStore {
client_id: this.client_id,
scope: this.scope,
callback: response => {
this.access_token = response.access_token;
this.updateSigninStatus(true);
localStorage.setItem('google_access_token', response.access_token);
if (response?.access_token && !response?.error) {
this.access_token = response.access_token;
this.updateSigninStatus(true);
localStorage.setItem('google_access_token', response.access_token);
}
},
});
};
Expand Down

1 comment on commit e15757f

@vercel
Copy link

@vercel vercel bot commented on e15757f Dec 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-app – ./

deriv-app.vercel.app
binary.sx
deriv-app-git-master.binary.sx
deriv-app.binary.sx

Please sign in to comment.