Skip to content
Snippets Groups Projects
Commit 8e3948de authored by Dima Rifai's avatar Dima Rifai Committed by mcfarhat
Browse files

Issue #410 - Use optional chaining operator inconvertOperationResultsToTableOperations

parent e328109f
1 merge request!522Issue #410 - Use optional chaining operator inconvertOperationResultsToTableOperations
Pipeline #113709 canceled
This commit is part of merge request !522. Comments created here will be created in the context of that merge request.
...@@ -84,7 +84,7 @@ export const formatPercent = (numberToFormat: number): string => { ...@@ -84,7 +84,7 @@ export const formatPercent = (numberToFormat: number): string => {
export const convertOperationResultsToTableOperations = ( export const convertOperationResultsToTableOperations = (
operations: Hive.OperationResponse[] operations: Hive.OperationResponse[]
): Explorer.OperationForTable[] => { ): Explorer.OperationForTable[] => {
return operations.map((operation) => ({ return operations?.map((operation) => ({
operation: operation.op, operation: operation.op,
blockNumber: operation.block, blockNumber: operation.block,
trxId: operation.trx_id, trxId: operation.trx_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment