From 7ec98624f508b2bf33b770483fc1e9240d2c5521 Mon Sep 17 00:00:00 2001 From: Frederic Maury Date: Tue, 23 Apr 2024 17:45:05 +0200 Subject: [PATCH] fix: use case-sensitive address for realt dashboard URL --- frontend/src/components/PropertyPanel/PropertyPanel.tsx | 2 +- frontend/src/services/realtokens.ts | 1 + frontend/src/types/property.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/PropertyPanel/PropertyPanel.tsx b/frontend/src/components/PropertyPanel/PropertyPanel.tsx index c0b90a4..1f536ff 100644 --- a/frontend/src/components/PropertyPanel/PropertyPanel.tsx +++ b/frontend/src/components/PropertyPanel/PropertyPanel.tsx @@ -45,7 +45,7 @@ export function PropertyPanel() { diff --git a/frontend/src/services/realtokens.ts b/frontend/src/services/realtokens.ts index a75c4f1..ad8f1f6 100644 --- a/frontend/src/services/realtokens.ts +++ b/frontend/src/services/realtokens.ts @@ -32,6 +32,7 @@ export function mapPropertiesList( accu.set(property.gnosisContract.toLowerCase(), { ...property, address: property.gnosisContract.toLowerCase(), + caseSensitiveAddress: property.gnosisContract, isOld: property.fullName.startsWith('OLD-'), icon: setIcon(property.propertyType), iconColorClass: setIconColor(property.rentedUnits, property.totalUnits), diff --git a/frontend/src/types/property.ts b/frontend/src/types/property.ts index 21b3724..950fe31 100644 --- a/frontend/src/types/property.ts +++ b/frontend/src/types/property.ts @@ -4,6 +4,7 @@ import { RealToken } from "./realtProperty"; export interface Property extends RealToken { icon: string; address: string; + caseSensitiveAddress: string; iconColorClass: string; ownedAmount: number; ownerWallets: string[];