Make user input saving account-specific

This commit is contained in:
Cohee
2025-02-12 11:21:13 +02:00
parent 5085f6cdc9
commit 340c03cedf
2 changed files with 13 additions and 2 deletions

View File

@ -43,6 +43,14 @@ export function isAdmin() {
return Boolean(currentUser.admin);
}
/**
* Gets the handle string of the current user.
* @returns {string} User handle
*/
export function getCurrentUserHandle() {
return currentUser?.handle || 'default-user';
}
/**
* Get the current user.
* @returns {Promise<void>}