use arrow function

This commit is contained in:
9Morello
2024-09-23 16:26:57 -04:00
parent 5bf69edc8b
commit 399b84d509

View File

@@ -382,7 +382,7 @@ export class AccountsClient extends AccountsCommon {
this.makeClientLoggedIn(result.id, result.token, result.tokenExpires);
// use Tracker to make we sure have a user before calling the callbacks
Tracker.autorun(async function (computation) {
Tracker.autorun(async (computation) => {
const user = await Tracker.withComputation(computation, () =>
Meteor.userAsync(),
);