From 6175627075f34fae4942275fed32408556f15f20 Mon Sep 17 00:00:00 2001 From: Patrick Browne Date: Fri, 18 Feb 2022 08:29:18 +0100 Subject: [PATCH] fix: Typo in type guard for dimension type --- app/domain/data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/domain/data.ts b/app/domain/data.ts index 9b8a296af..0c625552f 100644 --- a/app/domain/data.ts +++ b/app/domain/data.ts @@ -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 = (