From 711c625648925b2d82904f188df89296682e76e4 Mon Sep 17 00:00:00 2001 From: kdmukai Date: Wed, 18 Dec 2024 17:07:23 -0600 Subject: [PATCH] bugfix for long preferences key --- src/lib/locales/en.json | 2 +- src/routes/Settings.svelte | 10 +++++----- tests/shared.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/locales/en.json b/src/lib/locales/en.json index c4f826e..caab16c 100644 --- a/src/lib/locales/en.json +++ b/src/lib/locales/en.json @@ -44,7 +44,7 @@ "useNostr": "Use Nostr data source", "bitaxeHostname": "BitAxe hostname or IP", "bitaxeEnabled": "Enable BitAxe", - "miningPoolStatsEnabled": "Enable Mining Pool Stats", + "miningPoolStats": "Enable Mining Pool Stats", "miningPoolName": "Mining Pool", "miningPoolUser": "Mining Pool username or api key", "nostrZapPubkey": "Nostr Zap pubkey", diff --git a/src/routes/Settings.svelte b/src/routes/Settings.svelte index 385ebe3..2dbdcdc 100644 --- a/src/routes/Settings.svelte +++ b/src/routes/Settings.svelte @@ -698,7 +698,7 @@ {/if} - {#if $settings.miningPoolStatsEnabled} + {#if $settings.miningPoolStats} {/if} - {#if 'miningPoolStatsEnabled' in $settings} + {#if 'miningPoolStats' in $settings} {/if} diff --git a/tests/shared.ts b/tests/shared.ts index 75ec6ec..716ff1b 100644 --- a/tests/shared.ts +++ b/tests/shared.ts @@ -45,7 +45,7 @@ export const settingsJson = { gitTag: '3.1.9', bitaxeEnabled: false, bitaxeHostname: 'bitaxe1', - miningPoolStatsEnabled: false, + miningPoolStats: false, miningPoolName: 'ocean', miningPoolUser: '38Qkkei3SuF1Eo45BaYmRHUneRD54yyTFy', nostrZapNotify: true,