mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
Remove TypeScript types from starter file
This code throws an error because it includes TypeScript types in two locations. Adding `lang="ts"` to the `<script>` tag also fixes the issue, but since TS doesn't seem to be present anywhere else in this starter, for the sake of simplicity, I felt it was better to simply remove the TS syntax.
This commit is contained in:
1 parent
435981f7de
commit
6d0381de9a
1 file changed
+2
-2
@@ -251,7 +251,7 @@ Let's create a new component for that called `Profile.svelte`.
|
||||
let website = null
|
||||
let avatar_url = null
|
||||
|
||||
function getProfile(node: HTMLElement) {
|
||||
function getProfile(node) {
|
||||
try {
|
||||
loading = true;
|
||||
const user = supabase.auth.user();
|
||||
@@ -269,7 +269,7 @@ Let's create a new component for that called `Profile.svelte`.
|
||||
}
|
||||
if (error && status !== 406) throw error;
|
||||
});
|
||||
} catch (error: any) {
|
||||
} catch (error) {
|
||||
alert(error.message);
|
||||
} finally {
|
||||
loading = false;
|
||||
|
||||
Reference in new issue
Block a user