From 3aa87cc26fd58836b82c067b58a47e08e30a7784 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 4 Jun 2020 00:18:50 +0800 Subject: refactor(front): Make codes lint-clean! --- Timeline/ClientApp/src/user/api.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Timeline/ClientApp/src/user/api.ts') diff --git a/Timeline/ClientApp/src/user/api.ts b/Timeline/ClientApp/src/user/api.ts index 184c011f..583370e2 100644 --- a/Timeline/ClientApp/src/user/api.ts +++ b/Timeline/ClientApp/src/user/api.ts @@ -60,7 +60,7 @@ export function useOptionalVersionedAvatarUrl( ? undefined : updateQueryString( 'v', - avatarVersion == null ? null : avatarVersion + '', + avatarVersion == null ? null : avatarVersion.toString(), url ), [avatarVersion, url] @@ -72,7 +72,8 @@ export function useAvatarUrlWithGivenVersion( url: string ): string { return React.useMemo( - () => updateQueryString('v', version == null ? null : version + '', url), + () => + updateQueryString('v', version == null ? null : version.toString(), url), [version, url] ); } -- cgit v1.2.3