fix(phone/anim): Added missing phoneClose anim to handler

This commit is contained in:
Taso committed 2021-02-10 17:46:46 -05:00
1 parent 8f78423591
commit 587185535f
1 file changed
+2 -1
+2 -1
View File
@@ -250,6 +250,7 @@ const hidePhone = async (): Promise<void> => {
data: false,
})
);
await phoneCloseAnim();
SetNuiFocus(false, false);
};
@@ -363,7 +364,7 @@ on(`__cfx_nui:${events.OPEN_APP_DAILER}`, (data: any, cb: Function) => {
RegisterNuiCallbackType('phone:close');
on(`__cfx_nui:phone:close`, async (data: any, cb: Function) => {
await hidePhone();
await Phone();
cb();
}); // Called for when the phone is closed via the UI.