fix: use profileData instead of instance store
This commit is contained in:
1 parent
f2c9b5171b
commit
dffa10aee7
1 file changed
+6
-4
@@ -10,14 +10,16 @@
|
|||||||
import TextInput from '$lib/components/input/TextInput.svelte'
|
import TextInput from '$lib/components/input/TextInput.svelte'
|
||||||
import EditableList from '$lib/components/ui/list/EditableList.svelte'
|
import EditableList from '$lib/components/ui/list/EditableList.svelte'
|
||||||
import { toast } from '$lib/components/ui/toasts/toasts.js'
|
import { toast } from '$lib/components/ui/toasts/toasts.js'
|
||||||
import { LINKED_INSTANCE_URL, instance } from '$lib/instance.js'
|
|
||||||
import {
|
import {
|
||||||
validateInstance,
|
DEFAULT_INSTANCE_URL,
|
||||||
} from '$lib/lemmy.js'
|
LINKED_INSTANCE_URL,
|
||||||
|
instance,
|
||||||
|
} from '$lib/instance.js'
|
||||||
|
import { validateInstance } from '$lib/lemmy.js'
|
||||||
import { ArrowLeftOnRectangle, Icon, Plus, Trash } from 'svelte-hero-icons'
|
import { ArrowLeftOnRectangle, Icon, Plus, Trash } from 'svelte-hero-icons'
|
||||||
import { flip } from 'svelte/animate'
|
import { flip } from 'svelte/animate'
|
||||||
|
|
||||||
let newInstance: string = $instance
|
let newInstance: string = $profileData.defaultInstance ?? DEFAULT_INSTANCE_URL
|
||||||
let loading = false
|
let loading = false
|
||||||
|
|
||||||
async function changeGuestInstance() {
|
async function changeGuestInstance() {
|
||||||
|
|||||||
Reference in new issue
Block a user