From 39cec53568fa899fdff8614115ad32e31759ee93 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Sun, 13 Sep 2026 13:31:57 -0700 Subject: no user if not transferred yet, use workerId --- jb-ui/src/pages/Transfer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jb-ui/src/pages/Transfer.tsx b/jb-ui/src/pages/Transfer.tsx index a341c72..ca6c524 100644 --- a/jb-ui/src/pages/Transfer.tsx +++ b/jb-ui/src/pages/Transfer.tsx @@ -48,7 +48,7 @@ interface TransferSubmitProps { const TransferSubmit = function ({ onSubmitSuccess }: TransferSubmitProps) { const [email, setEmail] = useState(""); const [state, setState] = useState("idle"); - const { data: user } = useGetMeQuery(); + const bpuid = useAppSelector((state) => state.app.bpuid); const submit = async (event: FormEvent) => { event.preventDefault(); @@ -61,7 +61,7 @@ const TransferSubmit = function ({ onSubmitSuccess }: TransferSubmitProps) { headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email: email, - amt_worker_id: user?.product_user_id, + amt_worker_id: bpuid, }), }); -- cgit v1.2.3