aboutsummaryrefslogtreecommitdiff
path: root/jb-ui/src/pages/Transfer.tsx
diff options
context:
space:
mode:
authorMax Nanis2026-09-12 14:30:31 -0700
committerMax Nanis2026-09-12 14:30:31 -0700
commitb2261f9101480afb31322cf620f028cdade0671c (patch)
tree0bcba3696b0566138145d80a8fcb9230b172f2c5 /jb-ui/src/pages/Transfer.tsx
parentf82ac61b6a044467ab37c0645c3fe99b40bedfc5 (diff)
downloadamt-jb-b2261f9101480afb31322cf620f028cdade0671c.tar.gz
amt-jb-b2261f9101480afb31322cf620f028cdade0671c.zip
new landing page that combines leaderboard + login. fixing worker_id assignment, it'll still be needed until transfer is finished
Diffstat (limited to 'jb-ui/src/pages/Transfer.tsx')
-rw-r--r--jb-ui/src/pages/Transfer.tsx13
1 files changed, 2 insertions, 11 deletions
diff --git a/jb-ui/src/pages/Transfer.tsx b/jb-ui/src/pages/Transfer.tsx
index 4192eee..0d174c1 100644
--- a/jb-ui/src/pages/Transfer.tsx
+++ b/jb-ui/src/pages/Transfer.tsx
@@ -132,11 +132,11 @@ const TransferSubmit = function ({ onSubmitSuccess }) {
};
const Transfer = function () {
- const assignment_id = useAppSelector((state) => state.app.assignment_id);
+ const bpuid = useAppSelector((state) => state.app.bpuid);
const { data: user, isLoading, isError } = useGetMeQuery();
const [submitted, setSubmitted] = useState(false);
- if (!user?.product_user_id) {
+ if (!bpuid) {
return (
<p className="text-center text-2xl py-3 text-red-800 font-semibold">
No Worker ID found. Please access this page through the Amazon
@@ -145,15 +145,6 @@ const Transfer = function () {
);
}
- if (!assignment_id) {
- return (
- <p className="text-center text-2xl py-3 text-red-800 font-semibold">
- No Assignment ID found. Please access this page through the Amazon
- Mechanical Turk platform.
- </p>
- );
- }
-
return (
<>
{submitted ? (