Skip to content

Commit

Permalink
fix: Typo in type guard for dimension type
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Feb 18, 2022
1 parent dbd07fa commit 6175627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/domain/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ export const getDimensionsByDimensionType = ({
export const isNominalDimension = (
dimension?: DimensionMetaDataFragment
): dimension is GeoCoordinatesDimension => {
return dimension?.__typename === "GeoCoordinatesDimension";
return dimension?.__typename === "NominalDimension";
};

export const isOrdinalDimension = (
dimension?: DimensionMetaDataFragment
): dimension is GeoCoordinatesDimension => {
return dimension?.__typename === "GeoCoordinatesDimension";
return dimension?.__typename === "OrdinalDimension";
};

export const isGeoCoordinatesDimension = (
Expand Down

0 comments on commit 6175627

Please sign in to comment.