From ada992cb9cad2a71292bb9e9a48b2a39efc5caed Mon Sep 17 00:00:00 2001 From: victorkirov Date: Wed, 16 Aug 2023 07:00:00 +0300 Subject: [PATCH] fix: remove array.at usage as not supported in Native --- api/ordinals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/ordinals.ts b/api/ordinals.ts index 2084e7ca..3b11bf46 100644 --- a/api/ordinals.ts +++ b/api/ordinals.ts @@ -77,7 +77,7 @@ export async function getOrdinalIdFromUtxo(utxo: UTXO) { const ordinalIds = await axios.get(ordinalContentUrl); if (ordinalIds.data.length > 0) { - return ordinalIds.data.at(-1); + return ordinalIds.data[ordinalIds.data.length - 1]; } else { return null; }