From 8e3948de08fa1630b71f891b7f6b8c696d4703a5 Mon Sep 17 00:00:00 2001
From: Dima Rifai <dima.rifai@gmail.com>
Date: Mon, 20 Jan 2025 18:50:22 +0200
Subject: [PATCH] Issue #410 - Use optional chaining operator
 inconvertOperationResultsToTableOperations

---
 lib/utils.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/utils.ts b/lib/utils.ts
index a92e97da..8650cd41 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -84,7 +84,7 @@ export const formatPercent = (numberToFormat: number): string => {
 export const convertOperationResultsToTableOperations = (
   operations: Hive.OperationResponse[]
 ): Explorer.OperationForTable[] => {
-  return operations.map((operation) => ({
+  return operations?.map((operation) => ({
     operation: operation.op,
     blockNumber: operation.block,
     trxId: operation.trx_id,
-- 
GitLab