From 16606032001fe554f00f0c6e006b2cd012ab5c12 Mon Sep 17 00:00:00 2001 From: Daniil Barbashov Date: Thu, 24 Oct 2024 11:58:58 +0300 Subject: [PATCH] small fixes --- src/services/WebSocketService.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/services/WebSocketService.ts b/src/services/WebSocketService.ts index a6748b9..8821b25 100644 --- a/src/services/WebSocketService.ts +++ b/src/services/WebSocketService.ts @@ -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` }