diff options
author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2020-10-14 12:55:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 15:55:36 -0400 |
commit | 79d237f616c37940f5d476eb1dca6b5d05cf148a (patch) | |
tree | 417386f5e3797e0cb3c51e1fd668ed4c20f4b7c0 /src/screens/onboarding/InvitationCodeVerification.tsx | |
parent | 22142e2f8aa7d5eed8de1e520fd5ce825d2c63ca (diff) |
[TMA-232] (Small change) Make call to the correct API on backend and a nitpick (#55)
* Make call to a the correct API on backend and a nitpick
* Added a feedback (Alert) after successful image upload
* Iterate through the returned data to see if the image was actually uploaded successfully
Diffstat (limited to 'src/screens/onboarding/InvitationCodeVerification.tsx')
-rw-r--r-- | src/screens/onboarding/InvitationCodeVerification.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screens/onboarding/InvitationCodeVerification.tsx b/src/screens/onboarding/InvitationCodeVerification.tsx index 9af288b4..fd5f828b 100644 --- a/src/screens/onboarding/InvitationCodeVerification.tsx +++ b/src/screens/onboarding/InvitationCodeVerification.tsx @@ -53,7 +53,7 @@ const InvitationCodeVerification: React.FC<InvitationCodeVerificationProps> = ({ }); const handleInvitationCodeVerification = async () => { - if(value.length == 6){ + if(value.length === 6){ try { let verifyInviteCodeResponse = await fetch(VERIFY_INVITATION_CODE_ENDPOUNT + value + '/', { method: 'DELETE', |