message: transform into a thunk
diff: @@ -4,9 +4,7 @@ import _ from 'lodash';
  import { showNotification } from 'app/notifications/notifications';
  import { loadWishLists } from './actions';
  import store from 'app/store/store';
  -import { ThunkResult, RootState } from 'app/store/reducers';
  -import { ThunkDispatch } from 'redux-thunk';
  -import { AnyAction } from 'redux';
  +import { ThunkResult } from 'app/store/reducers';
  export function fetchWishList(): ThunkResult<Promise<void>> {
  return async (dispatch, getState) => {
  @@ -16,17 +14,18 @@ export function fetchWishList(): ThunkResult<Promise<void>> {
  return;
  }
  - fetch(wishListSource)
  - .then((result) => result.text())
  - .then((resultText) => transformAndStoreWishList(resultText, 'Fetch Wish List', dispatch));
  + const wishListResponse = await fetch(wishListSource);
  + const wishListText = await wishListResponse.text();
  +
  + dispatch(transformAndStoreWishList(wishListText, 'Fetch Wish List'));
  };
  }
  export function transformAndStoreWishList(
  wishListResult: string,
  - eventName: string,
  - dispatch?: ThunkDispatch<RootState, {}, AnyAction>
  -) {
  + eventName: string
  +): ThunkResult<Promise<void>> {
  + return async (dispatch) => {
  const wishListAndInfo = toWishList(wishListResult);
  ga('send', 'event', 'Rating Options', eventName);
  @@ -57,4 +56,5 @@ export function transformAndStoreWishList(
  body: t('WishListRoll.ImportFailed')
  });
  }
  + };
  }
  