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:
Josh Collinsworth authored and GitHub committed 2022-08-15 13:37:26 -05:00
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;