From a63222c7dd4a45ba4eec10168042790d363c4288 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Tue, 18 Jul 2017 19:00:55 -0400 Subject: [PATCH] remove test code --- ui/js/actions/user.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ui/js/actions/user.js b/ui/js/actions/user.js index 0ca9bc8ee..799bc8cbc 100644 --- a/ui/js/actions/user.js +++ b/ui/js/actions/user.js @@ -159,22 +159,22 @@ export function doUserIdentityVerify(stripeToken) { } }) .catch(error => { - let user = selectUser(getState()); - user.is_identity_verified = true; - if (user.is_identity_verified) { - dispatch({ - type: types.USER_IDENTITY_VERIFY_SUCCESS, - data: { user }, - }); - } else { - throw new Error( - "Your identity is still not verified. This should not happen." - ); //shouldn't happen - } - // dispatch({ - // type: types.USER_IDENTITY_VERIFY_FAILURE, - // data: { error: error.toString() }, - // }); + // let user = selectUser(getState()); + // user.is_identity_verified = true; + // if (user.is_identity_verified) { + // dispatch({ + // type: types.USER_IDENTITY_VERIFY_SUCCESS, + // data: { user }, + // }); + // } else { + // throw new Error( + // "Your identity is still not verified. This should not happen." + // ); //shouldn't happen + // } + dispatch({ + type: types.USER_IDENTITY_VERIFY_FAILURE, + data: { error: error.toString() }, + }); }); }; }