Skip to content

Commit

Permalink
fix: mcok
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Feb 27, 2025
1 parent a7b6e65 commit 0854a3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/api/getRealEstate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { mockRealEstate } from './mock';
const getRealEstate = async (id: bigint): Promise<RealEstate> => {
const url = `/real-estate/${id}`;

return await deferredDataRequest('GET', url, mockRealEstate(id));
return await deferredDataRequest('GET', url, mockRealEstate());
};

export default getRealEstate;
3 changes: 1 addition & 2 deletions src/js/api/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ export const mockAgency = (owner: string): Agency => {
};
};

export const mockRealEstate = (id: bigint): RealEstate => {
export const mockRealEstate = (): RealEstate => {
return {
id,
name: 'Villa in the heart of London',
description: 'A beautiful villa in the heart of London',
image: 'https://placecats.com/300/300',
Expand Down

0 comments on commit 0854a3e

Please sign in to comment.