From e06e2c7f239736ff11d7f32e09342cc720f5bc87 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 2 Feb 2022 20:44:06 -0800 Subject: [PATCH] Update api.tsx --- utils/api.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/api.tsx b/utils/api.tsx index 11391545..f1ae1b4e 100644 --- a/utils/api.tsx +++ b/utils/api.tsx @@ -58,7 +58,7 @@ class Api { return axios.get(url) } - check(resource: 'username'|'email', value: string) { + check(resource: string, value: string) { const resourceUrl = `${this.url}/check/${resource}` return axios.post(resourceUrl, { [resource]: value