Skip to content

Commit

Permalink
Give warning if character is private
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Nov 24, 2020
1 parent abfba63 commit 2696694
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/character/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ async function getCharacterData(characterId) {
})
.then((response) => response.json())
.then((data) => {
if (!data.success) {
resolve(data);
}
// construct the expected { character: {...} } object
let ddb = data.ddb.character === undefined ? { character: data.ddb } : data.ddb;
try {
Expand Down

0 comments on commit 2696694

Please sign in to comment.