The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
403 B

  1. import { openModal } from './modal';
  2. import { changeSetting, saveSettings } from './settings';
  3. export function showOnboardingOnce() {
  4. return (dispatch, getState) => {
  5. const alreadySeen = getState().getIn(['settings', 'onboarded']);
  6. if (!alreadySeen) {
  7. dispatch(openModal('ONBOARDING'));
  8. dispatch(changeSetting(['onboarded'], true));
  9. dispatch(saveSettings());
  10. }
  11. };
  12. };