variant: fix occasional fail when resetting generator #208

This commit is contained in:
Sören Weber 2022-02-24 22:14:55 +01:00
parent b895d0386b
commit eab101eace
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -130,7 +130,7 @@ var variants = {
window.localStorage.removeItem( 'customvariantbase' );
window.localStorage.removeItem( 'customvariant' );
this.removeCustomVariantOption();
if( this.getVariant() == variantbase ){
if( this.getVariant() == this.customvariantname ){
this.changeVariant( variantbase );
}
}