refactor ipcEmit event

This commit is contained in:
riqo 2021-06-20 14:01:48 -05:00
commit 95e3dab1c2
6 changed files with 14 additions and 21 deletions

View file

@ -1,9 +1,9 @@
// shared
import { ref } from "vue";
export let profile = ref();
export const profile = ref();
export let authComplete = ref(false);
export const authComplete = ref(false);
export const setProfile: IpcListenerCallback<Profile | null> = (payload) => {
payload ? profile.value = payload : clearProfile();