Skip to content

Commit

Permalink
marketUpdateAt -> marketUpdatedAt (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-J-Mason authored Jul 13, 2024
1 parent 0030547 commit 55be4a2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const ResponseBody = ({
</Text>
<Text color={selectTextColorAccent}>
{calculateTimeDifference(
data.buyFromStationDto.marketUpdateAt,
data.buyFromStationDto.marketUpdatedAt,
)}
</Text>
</HStack>
Expand Down Expand Up @@ -209,7 +209,7 @@ const ResponseBody = ({
</Text>
<Text color={selectTextColorAccent}>
{calculateTimeDifference(
data.sellToStationDto.marketUpdateAt,
data.sellToStationDto.marketUpdatedAt,
)}
</Text>
</HStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const ResponseBody = ({
</Text>
<Text color={selectTextColorAccent} fontSize="xs">
{calculateTimeDifference(
data.buyFromStationDto.marketUpdateAt,
data.buyFromStationDto.marketUpdatedAt,
)}
</Text>
</HStack>
Expand Down Expand Up @@ -275,7 +275,7 @@ const ResponseBody = ({
</Text>
<Text color={selectTextColorAccent} fontSize="xs">
{calculateTimeDifference(
data.sellToStationDto.marketUpdateAt,
data.sellToStationDto.marketUpdatedAt,
)}
</Text>
</HStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const mockedBuyStation: ZodStationDtoApiType = {
requireOdyssey: false,
fleetCarrier: false,
maxLandingPadSize: 'LARGE',
marketUpdateAt: now,
marketUpdatedAt: now,
};

const mockedSellStation: ZodStationDtoApiType = {
Expand All @@ -68,7 +68,7 @@ const mockedSellStation: ZodStationDtoApiType = {
requireOdyssey: false,
fleetCarrier: false,
maxLandingPadSize: 'LARGE',
marketUpdateAt: now,
marketUpdatedAt: now,
};

const mockedBuyStation2: ZodStationDtoApiType = {
Expand All @@ -80,7 +80,7 @@ const mockedBuyStation2: ZodStationDtoApiType = {
requireOdyssey: false,
fleetCarrier: false,
maxLandingPadSize: 'LARGE',
marketUpdateAt: now,
marketUpdatedAt: now,
};

const mockedResults: FormResponseProps[] = [
Expand Down
2 changes: 1 addition & 1 deletion app/_types/api-responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface StationDtoApi {
requireOdyssey: boolean;
fleetCarrier: boolean;
maxLandingPadSize: LandingPadEnumApi;
marketUpdateAt: string;
marketUpdatedAt: string;
}

export interface SingleTradeAPIResponse {
Expand Down
2 changes: 1 addition & 1 deletion app/_types/zod/zod-station.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const ZodStationDtoApiConst = z.object({
requireOdyssey: z.boolean(),
fleetCarrier: z.boolean(),
maxLandingPadSize: ZodLandingPadEnumConst,
marketUpdateAt: z.string(),
marketUpdatedAt: z.string(),
});

export type ZodStationDtoApiType = z.infer<typeof ZodStationDtoApiConst>;

0 comments on commit 55be4a2

Please sign in to comment.