fix(webui): error when an unknown suit is max rank (#2109)
Reviewed-on: OpenWF/SpaceNinjaServer#2109 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									b0499a62aa
								
							
						
					
					
						commit
						d43e39d7b5
					
				@ -476,7 +476,7 @@ function updateInventory() {
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        let anyExaltedMissingXP = false;
 | 
			
		||||
                        if (item.XP >= maxXP && "exalted" in itemMap[item.ItemType]) {
 | 
			
		||||
                        if (item.XP >= maxXP && item.ItemType in itemMap && "exalted" in itemMap[item.ItemType]) {
 | 
			
		||||
                            for (const exaltedType of itemMap[item.ItemType].exalted) {
 | 
			
		||||
                                const exaltedItem = data.SpecialItems.find(x => x.ItemType == exaltedType);
 | 
			
		||||
                                if (exaltedItem) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user