Skip to content

Commit

Permalink
Remove useless condition
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Feb 21, 2024
1 parent 1575344 commit efc81f5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/oasis-nexus/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit efc81f5

Please sign in to comment.