From 3551722ec686c379278e3f9f3fa19a1db2b2979d Mon Sep 17 00:00:00 2001 From: Kaja Date: Fri, 5 Jan 2024 14:33:40 +0100 Subject: [PATCH] Change formatting of event.type in api.ts --- src/oasis-nexus/api.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/oasis-nexus/api.ts b/src/oasis-nexus/api.ts index fce22e79f0..058e1c606b 100644 --- a/src/oasis-nexus/api.ts +++ b/src/oasis-nexus/api.ts @@ -699,11 +699,13 @@ export const useGetRuntimeEvents: typeof generated.useGetRuntimeEvents = ( events: data.events.map(event => { const adjustedHash = event.eth_tx_hash ? `0x${event.eth_tx_hash}` : undefined if ( - event.type === 'accounts.transfer' || - event.type === 'accounts.mint' || - event.type === 'accounts.burn' || - event.type === 'consensus_accounts.deposit' || - event.type === 'consensus_accounts.withdraw' + event.type === RuntimeEventType.accountstransfer || + event.type === RuntimeEventType.accountsmint || + event.type === RuntimeEventType.accountsburn || + event.type === RuntimeEventType.consensus_accountsdeposit || + event.type === RuntimeEventType.consensus_accountswithdraw || + event.type === RuntimeEventType.consensus_accountsdelegate || + event.type === RuntimeEventType.consensus_accountsundelegate_done ) { return { ...event,