Skip to content

Commit

Permalink
fix: use case-sensitive address for realt dashboard URL
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-maury committed Apr 23, 2024
1 parent ea9160a commit 7ec9862
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/PropertyPanel/PropertyPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function PropertyPanel() {
<Drawer.Title>
<PropertyPanelActions
marketplaceLink={property.marketplaceLink}
address={property.address}
address={property.caseSensitiveAddress}
onClose={onClose} />
</Drawer.Title>
</Grid.Col>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/services/realtokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
1 change: 1 addition & 0 deletions frontend/src/types/property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down

0 comments on commit 7ec9862

Please sign in to comment.