Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarbashov committed Oct 24, 2024
1 parent 96a955f commit 1660603
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/WebSocketService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,16 +167,16 @@ class _WebSocketService {

let contract = ""
let setKey = ""
if (event.includes("sales")) {
if (event?.includes("sale")) {
contract = (data as SalesSchema).token.contract
setKey = `sales.contracts`
} else if (event.includes("transfers")) {
} else if (event?.includes("transfer")) {
contract = (data as TransfersSchema).token.contract
setKey = `transfers.contracts`
} else if (event.includes("asks")) {
} else if (event?.includes("ask")) {
contract = (data as AsksSchema).contract
setKey = `asks.contracts`
} else if (event.includes("bids")) {
} else if (event?.includes("bid")) {
contract = (data as BidsSchema).contract
setKey = `bids.contracts`
}
Expand Down

0 comments on commit 1660603

Please sign in to comment.