File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11# UnderScript Changelog
22
3+ ## Version 0.57.1 (2024-04-05)
4+ 1 . Fixed collection dropdown filter translation error
5+
36## Version 0.57.0 (2024-04-01)
47### New Features
581 . Added filter for tribes
Original file line number Diff line number Diff line change @@ -142,6 +142,10 @@ function allTribeButton() {
142142}
143143
144144function ownSelect ( ) {
145+ if ( ! global ( 'translationReady' , { throws : false } ) ) {
146+ eventManager . once ( 'translation:loaded' , ( ) => applyLook ( false ) ) ;
147+ return '' ;
148+ }
145149 return $ ( `
146150 <select id="collectionType" onchange="applyFilters(); showPage(0);">
147151 <option value="all">${ translateText ( 'crafting-all-cards' ) } </option>
@@ -196,7 +200,7 @@ filters.push(
196200 case 'maxed' : return card . quantity < max ( card . rarity ) ;
197201 case 'surplus' : return card . quantity <= max ( card . rarity ) ;
198202 case 'craftable' : return card . quantity >= max ( card . rarity ) || card . rarity === 'DETERMINATION' ;
199- case 'all' : // fall-through
203+ case 'all' :
200204 default : break ;
201205 }
202206 }
You can’t perform that action at this time.
0 commit comments