Skip to content

Commit

Permalink
fix: profile alliance id can be null (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein authored Oct 10, 2024
1 parent af0675a commit 03b1cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class Profile {
* Alliance ID
* @type {String}
*/
this.allianceId = profile.AllianceId.$oid;
if (profile.AllianceId.$oid) this.allianceId = profile.AllianceId.$oid;

/**
* Assassins currently asfter the player
Expand Down

0 comments on commit 03b1cda

Please sign in to comment.