From ef92e4f38c63e81b17dc3d55105643b1bb8c562d Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Sat, 14 Dec 2019 19:34:26 +0700 Subject: [PATCH] fixed errors --- src/constants/providers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants/providers.ts b/src/constants/providers.ts index 08cfc42..4faade2 100644 --- a/src/constants/providers.ts +++ b/src/constants/providers.ts @@ -96,5 +96,5 @@ export const replaceProviderUrl = (provider, { x, y, zoom }: { x: number, y: num ? range[Math.round((Math.random() * (range.length - 1)))] : 1; - return url.replace('{x}', x).replace('{y}', y).replace('{z}', zoom).replace('{s}', String(random)); + return url.replace('{x}', String(x)).replace('{y}', String(y)).replace('{z}', String(zoom)).replace('{s}', String(random)); };