Small refactor
This commit is contained in:
1 parent
cf102d1bd1
commit
1c6a2e39d1
1 file changed
+3
-2
@@ -31,8 +31,9 @@
|
|||||||
};
|
};
|
||||||
const logout = async () => {
|
const logout = async () => {
|
||||||
await PlayletApi.logout();
|
await PlayletApi.logout();
|
||||||
// TODO: reload state
|
PlayletApi.getState().then((value) => {
|
||||||
window.location.reload();
|
playletStateStore.set(value);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user