aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/user/api.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-04 00:18:50 +0800
committercrupest <crupest@outlook.com>2020-06-04 00:18:50 +0800
commitfccd6b4ca8ed7420f25f0c4298fde311bc1e09d0 (patch)
tree787cda66f8997ba842601a261a36b6de95398675 /Timeline/ClientApp/src/user/api.ts
parent92e50c4a3ea250dc18c76bc8c29d86d486e63772 (diff)
downloadtimeline-fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0.tar.gz
timeline-fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0.tar.bz2
timeline-fccd6b4ca8ed7420f25f0c4298fde311bc1e09d0.zip
refactor(front): Make codes lint-clean!
Diffstat (limited to 'Timeline/ClientApp/src/user/api.ts')
-rw-r--r--Timeline/ClientApp/src/user/api.ts5
1 files changed, 3 insertions, 2 deletions
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]
);
}