From 269af53b16cc6055cc2ff0ef4c188185ca481a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Velarde?= Date: Wed, 8 Jul 2020 21:19:41 +0200 Subject: [PATCH] chore: fix typo --- CHANGELOG.md | 2 +- src/lib/viz/popups/Popup.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08aba326..6c12cf5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) - Add `beforeLayerId` and `afterLayerId` options to `carto.viz.Layer.addTo` method, to customize layer position ### Changed -- Remove d3.format option from Popup +- Remove d3.format option from `carto.viz.Popup` ### Fixed - diff --git a/src/lib/viz/popups/Popup.ts b/src/lib/viz/popups/Popup.ts index 84635923..6a27a8d9 100644 --- a/src/lib/viz/popups/Popup.ts +++ b/src/lib/viz/popups/Popup.ts @@ -269,7 +269,7 @@ function generatePopupContent(elements: any, features: Record[]): s elementValue = format(elementValue); } else { throw new CartoPopupError( - `Invalid popup format: '${format}' is not a funtion`, + `Invalid popup format: '${format}' is not a function`, popupErrorTypes.FORMAT_INVALID ); }