{#if user === undefined} {:else}

{ if (e.key === 'Enter') { submit = input; // eslint-disable-next-line no-undef umami.track('Fix Follow'); } }} /> (submit = input)}> Toggle follow for {input.length === 0 ? '...' : input}

{#if submit.length > 0} {#await toggleFollow(user, submit)} Toggling follow ... {:then response}

Successfully toggled follow for {submit}. {submit} {response.isFollower ? 'is' : 'is not'} following you, {response.isFollowing ? 'but' : 'and'} you {response.isFollowing ? 'are' : 'are not'} following them.

{:catch}

Failed to toggle follow for {submit}.

{/await} {/if} {/if}