Skip to content

Commit

Permalink
Merge pull request #367 from scottbenton/fix/delete-log
Browse files Browse the repository at this point in the history
fix(delete log): Fixed a slight issue when deleting game logs
  • Loading branch information
scottbenton authored Feb 23, 2024
2 parents 052e2ad + 0438d61 commit e1d7987
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- Changed the layout of the app
- Added ability to add extra experience points past 30 (Ironsworn)
- Added the ability to delete Rolls from the log (AnnB)

### Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion src/api-calls/game-log/removeLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const removeLog = createApiFunction<
reject(new Error("Either campaign or character ID must be defined."));
}

const docRef = characterId
const docRef = campaignId
? getCampaignGameLogDocument(campaignId as string, logId)
: getCharacterGameLogDocument(characterId as string, logId);

Expand Down

0 comments on commit e1d7987

Please sign in to comment.