Skip to content

Commit

Permalink
[WV-131] set twitterSignInStartSubmitted state to true only in IOS wh…
Browse files Browse the repository at this point in the history
…en clicking Twitter login button
  • Loading branch information
smcvey7 committed Feb 8, 2024
1 parent 18a3012 commit e3452a0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/js/components/Twitter/TwitterSignIn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,12 @@ class TwitterSignIn extends Component {
twitterSignInWebApp = () => {
const brandingOff = Cookies.get('we_vote_branding_off') || 0;
oAuthLog(`twitterSignInWebApp isWebApp(): ${isWebApp()}, returnURL: ${returnURL}`);
this.setState({
twitterSignInStartSubmitted: true,
});
// causing bug WV-131 in desktop version
if (isIOS()) {
this.setState({
twitterSignInStartSubmitted: true,
});
}
$ajax({
endpoint: 'twitterSignInStart',
data: { return_url: returnURL },
Expand Down

0 comments on commit e3452a0

Please sign in to comment.