From a19b6370c440d75dcf4e2490c3dddc2f370ddb7f Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 8 May 2022 18:40:43 -0500 Subject: [PATCH] Fix:getBookCoverAspectRatio --- client/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/store/index.js b/client/store/index.js index e07bffc4..70082099 100644 --- a/client/store/index.js +++ b/client/store/index.js @@ -33,7 +33,7 @@ export const getters = { return state.serverSettings[key] }, getBookCoverAspectRatio: state => { - if (!state.serverSettings || !state.serverSettings.coverAspectRatio) return 1 + if (!state.serverSettings || isNaN(state.serverSettings.coverAspectRatio)) return 1 return state.serverSettings.coverAspectRatio === 0 ? 1.6 : 1 }, getNumLibraryItemsSelected: state => state.selectedLibraryItems.length,