From efc81f54a7b4cbcef1a14b1c59fd1bee6bb80129 Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Wed, 21 Feb 2024 19:41:30 +0100 Subject: [PATCH] Remove useless condition --- src/oasis-nexus/api.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/oasis-nexus/api.ts b/src/oasis-nexus/api.ts index 2617ddd3d..3ead65579 100644 --- a/src/oasis-nexus/api.ts +++ b/src/oasis-nexus/api.ts @@ -748,13 +748,8 @@ export const useGetRuntimeEvents: typeof generated.useGetRuntimeEvents = ( event.body.amount.Denomination === '' ? { ...event.body.amount, - Amount: fromBaseUnits( - event.body.amount.Amount, - paraTimesConfig[runtime].decimals, - ), - Denomination: - event.body?.Denomination ?? - getTokensForScope({ network, layer: runtime })[0].ticker, + Amount: fromBaseUnits(event.body.Amount, paraTimesConfig[runtime].decimals), + Denomination: getTokensForScope({ network, layer: runtime })[0].ticker, } : event.body.amount, },