Skip to content

Commit

Permalink
Fix #2290
Browse files Browse the repository at this point in the history
  • Loading branch information
pwaillette committed Nov 18, 2023
1 parent 4308780 commit 1f91859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/player/ProfileCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function getStatisticField(profileModule: TranslationModule, askedPlayer:
* @param missionsInfo
*/
function getCampaignProgression(missionsInfo: PlayerMissionsInfo): number {
return missionsInfo.campaignProgression === 0 ? 1 : Math.round(Campaign.getAmountOfCampaignCompleted(missionsInfo.campaignBlob) / Campaign.getMaxCampaignNumber() * 100);
return missionsInfo.campaignProgression === 0 ? 100 : Math.round(Campaign.getAmountOfCampaignCompleted(missionsInfo.campaignBlob) / Campaign.getMaxCampaignNumber() * 100);
}

/**
Expand Down

0 comments on commit 1f91859

Please sign in to comment.