Skip to content

Commit

Permalink
Update fetchPlayerId.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Manwe-777 committed Sep 20, 2023
1 parent 3bd32d9 commit b6b7033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/fetchPlayerId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function fetchPlayerId(): Promise<string | undefined> {
return new Promise((resolve) => {
if (globalData.daemon) {
globalData.daemon.getPlayerId().then((d) => {
if (d && d.playerId !== "") {
if (d && d.playerId !== "undefined" && d.playerId !== "") {
switchPlayerUUID(d.playerId, d.displayName);
resolve(d.playerId);
} else {
Expand Down

0 comments on commit b6b7033

Please sign in to comment.