Skip to content

Commit

Permalink
fix: code
Browse files Browse the repository at this point in the history
  • Loading branch information
yashim-deriv committed Jun 23, 2023
1 parent 505119b commit dff4cf6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ const MockDialog = () => {
login: 1,
});
if (response) {
const { active_loginid, echo_req, req_id, ...accounts } = response;
const { active_loginid, ...accounts } = response;
delete accounts.req_id;
delete accounts.echo_req;
client.setLoginId(active_loginid);
client.setLoginInformation(accounts, active_loginid);
client.resetLocalStorageValues(active_loginid);
client.init();
}
};

Expand Down

0 comments on commit dff4cf6

Please sign in to comment.