From 47c185d37d2eb4fb8a84101d9adc1430c5743880 Mon Sep 17 00:00:00 2001 From: Thomas Marchand Date: Mon, 18 Sep 2023 15:18:34 +0700 Subject: [PATCH] fix: convert hex address to decimal to support new backend --- pages/[addressOrDomain].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/[addressOrDomain].tsx b/pages/[addressOrDomain].tsx index 4bc07e8e..3fedaf98 100644 --- a/pages/[addressOrDomain].tsx +++ b/pages/[addressOrDomain].tsx @@ -146,7 +146,7 @@ const AddressOrDomain: NextPage = () => { ...data, starknet_id: id.toString(), }); - if (hexToDecimal(address) === data.addr) setIsOwner(true); + if (hexToDecimal(address) === hexToDecimal(data.addr)) setIsOwner(true); setInitProfile(true); }); })