From eab101eaceaa93c72e4350a6a8fb25736855ce03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 24 Feb 2022 22:14:55 +0100 Subject: [PATCH] variant: fix occasional fail when resetting generator #208 --- static/js/variant.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/variant.js b/static/js/variant.js index 5fb4472df2..9cbfb1bf2c 100644 --- a/static/js/variant.js +++ b/static/js/variant.js @@ -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 ); } }