diff --git a/src/hooks/useWs/index.tsx b/src/hooks/useWs/index.tsx index 701de4c7d..ea5cc7685 100644 --- a/src/hooks/useWs/index.tsx +++ b/src/hooks/useWs/index.tsx @@ -23,7 +23,7 @@ const useWS = (name?: T) => { let payload = data; if (name) { - payload = { [name]: 1, ...payload }; + if (payload === undefined) payload = { [name]: 1, ...payload }; } else { payload = { ...payload }; } diff --git a/src/utils/playground_requests.tsx b/src/utils/playground_requests.tsx index 86a127c32..a4bfdfb2c 100644 --- a/src/utils/playground_requests.tsx +++ b/src/utils/playground_requests.tsx @@ -214,6 +214,13 @@ export const playground_requests = [ trader_id: 'CR1234', }, }, + { + name: 'crypto_config', + title: 'Cryptocurrency configuration', + body: { + crypto_config: 1, + }, + }, { name: 'document_upload', title: 'Document Upload',