File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -687,9 +687,10 @@ export const openDkpService = {
687687
688688 // Collect items from this tick
689689 for ( const loot of tick . data . loot ) {
690+ const buyer = toSentenceCase ( loot . buyer ) ;
690691 const odkpItem = await openDkpService . getItem ( loot . item ) ;
691- if ( ! characters . find ( ( c ) => c . Name === loot . buyer ) ) {
692- const errorMsg = `${ loot . buyer } won ${ odkpItem . ItemName } on tick ${ tick . name } , but is not a registered character. Item will not be uploaded.` ;
692+ if ( ! characters . find ( ( c ) => c . Name === buyer ) ) {
693+ const errorMsg = `${ buyer } won ${ odkpItem . ItemName } on tick ${ tick . name } , but is not a registered character. Item will not be uploaded.` ;
693694 failures . push ( errorMsg ) ;
694695 log ( errorMsg ) ;
695696 } else {
@@ -699,7 +700,7 @@ export const openDkpService = {
699700 ) ;
700701 }
701702 items . push ( {
702- CharacterName : loot . buyer ,
703+ CharacterName : buyer ,
703704 Dkp : loot . price ,
704705 ItemName : odkpItem . ItemName ,
705706 GameItemId : odkpItem . GameItemId ,
You can’t perform that action at this time.
0 commit comments