Commit 4ee004b9 authored by tom's avatar tom

oopss messed up data structure for csrf

parent 665859bc
...@@ -38,7 +38,7 @@ const Page = ({ ...@@ -38,7 +38,7 @@ const Page = ({
'x-bs-account-csrf': csrfFromHeader, 'x-bs-account-csrf': csrfFromHeader,
} ]); } ]);
return csrfFromHeader || nodeApiResponse; return csrfFromHeader ? { token: csrfFromHeader } : nodeApiResponse;
}, { }, {
enabled: Boolean(cookies.get(cookies.NAMES.API_TOKEN)), enabled: Boolean(cookies.get(cookies.NAMES.API_TOKEN)),
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment