fix: shortcode subscription failing to initialize
This commit is contained in:
@@ -249,7 +249,11 @@ const loading = computed(
|
||||
|
||||
onLoggedIn(() => {
|
||||
try {
|
||||
adapter.initialize()
|
||||
// wait for a bit to let the auth token to be set
|
||||
// because in some race conditions, the token is not set this fixes that
|
||||
setTimeout(() => {
|
||||
adapter.initialize()
|
||||
}, 10)
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user