From 0b82d267c9965739d3209cc8f3dd1ef90ece404f Mon Sep 17 00:00:00 2001 From: Jixun Wu Date: Sun, 11 Jun 2023 23:19:13 +0100 Subject: [PATCH] chore: trim whitespace when converting staging key to production --- src/features/settings/settingsSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/settings/settingsSlice.ts b/src/features/settings/settingsSlice.ts index dc6dfe4..45097f3 100644 --- a/src/features/settings/settingsSlice.ts +++ b/src/features/settings/settingsSlice.ts @@ -37,7 +37,7 @@ const stagingToProduction = (staging: StagingSettings): ProductionSettings => ({ keys: objectify( staging.qmc2.keys, (item) => item.name.normalize(), - (item) => item.key + (item) => item.key.trim() ), }, });