Skip to content

Commit

Permalink
Merge pull request #192 from ruby10127130/feature/confirm/show-locati…
Browse files Browse the repository at this point in the history
…on-when-user-oversea

feat: show oversea user location on ConfirmForm
  • Loading branch information
JohnsonMao authored Dec 23, 2024
2 parents 2edd80d + 5e0364a commit 5d1c533
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/Marathon/SignUp/ConfirmForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ export default function ConfirmForm({
let userEdu = userState?.educationStage;

if (userState?.location?.length > 1) {
userLocation = userState?.location.split('@')[1];
if (userState?.location.includes('@')) {
userLocation = userState?.location.split('@')[1];
} else {
userLocation = userState?.location;
}
}

if (userState?.roleList?.length) {
Expand Down

0 comments on commit 5d1c533

Please sign in to comment.