Skip to content

Commit

Permalink
Revert "fixes"
Browse files Browse the repository at this point in the history
This reverts commit 5630858.
  • Loading branch information
Undermaken committed Dec 15, 2020
1 parent 5630858 commit 29cb8c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
7 changes: 1 addition & 6 deletions ts/mixpanel.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import DeviceInfo from "react-native-device-info";
import { MixpanelInstance } from "react-native-mixpanel";
import { Platform } from "react-native";
import { mixpanelToken } from "./config";
import { isScreenReaderEnabled } from "./utils/accessibility";
import { getAppVersion } from "./utils/appVersion";
Expand Down Expand Up @@ -37,11 +36,7 @@ const setupMixpanel = async (mp: MixpanelInstance) => {

export const setMixpanelPushNotificationToken = (token: string) => {
if (mixpanel) {
return Platform.select({
android: mixpanel.setPushRegistrationId(token),
ios: mixpanel.addPushDeviceToken(token),
default: Promise.resolve()
});
return mixpanel.setPushRegistrationId(token);
}
return Promise.resolve();
};
3 changes: 1 addition & 2 deletions ts/store/reducers/wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import abiReducer, {
AbiState
} from "../../../features/wallet/onboarding/store/abi";
import { DateISO8601Transform } from "../../transforms/dateISO8601Tranform";
import { PotTransform } from "../../transforms/potTransform";
import paymentReducer, { PaymentState } from "./payment";
import pspsByIdReducer, { PspStateById } from "./pspsById";
import transactionsReducer, { TransactionsState } from "./transactions";
Expand All @@ -38,7 +37,7 @@ export const walletsPersistConfig: PersistConfig = {
key: "wallets",
storage: AsyncStorage,
whitelist: ["walletById"],
transforms: [DateISO8601Transform, PotTransform]
transforms: [DateISO8601Transform]
};

const reducer = combineReducers<WalletState, Action>({
Expand Down

0 comments on commit 29cb8c7

Please sign in to comment.