Skip to content

Commit

Permalink
Merge pull request #202 from hunterjm/develop
Browse files Browse the repository at this point in the history
v0.4.8
  • Loading branch information
hunterjm authored Aug 4, 2017
2 parents c0a08d3 + caa347d commit 175bbec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/actions/account.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { push } from 'react-router-redux';
import * as types from './accountTypes';
import { init, getApi } from '../utils/ApiUtil';
import { init, getApi, clearApiVars } from '../utils/ApiUtil';
import metrics from '../utils/MetricsUtil';

export function setAccountInfo(key, value) {
Expand Down Expand Up @@ -59,7 +59,7 @@ export function login(account, tfCb = () => {}, captchaCb = () => {}) {
}
dispatch(push('/players'));
} catch (e) {
// this.setState({ twoFactor: false, loading: false, errors: { detail: e.message } });
clearApiVars(account.email);
throw e;
}
};
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fifa-autobuyer",
"productName": "FIFA Autobuyer",
"version": "0.4.7",
"version": "0.4.8",
"description": "Autobuyer for FIFA 17 Ultimate Team",
"main": "./main.js",
"author": {
Expand Down
4 changes: 4 additions & 0 deletions app/utils/ApiUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ export function getApi(email, rpm) {
}
return login && login.api;
}

export function clearApiVars(email) {
window.localStorage.removeItem(`${email}::apiVars`);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fifa-autobuyer",
"productName": "FIFA Autobuyer",
"version": "0.4.7",
"version": "0.4.8",
"description": "Autobuyer for FIFA 17 Ultimate Team",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 175bbec

Please sign in to comment.