fix(scripts/client): fix wrong response format struct on promise reject

This commit is contained in:
Taso committed 2021-07-06 23:58:30 -04:00
1 parent 833d2f282b
commit f9956a15a8
1 file changed
+1 -1
+1 -1
View File
@@ -79,7 +79,7 @@ export const RegisterNuiProxy = (event: string) => {
cb(res);
} catch (e) {
console.error('Error encountered while listening to resp. Error:', e);
cb({ err: e });
cb({ status: 'error' });
}
});
};