From cb69dc4c137b51508bd20385af8e8657c6f3257c Mon Sep 17 00:00:00 2001 From: mattyl006 Date: Fri, 29 Jul 2022 09:00:50 +0200 Subject: [PATCH] add extra condition to Pager when pages is equal 0 --- src/components/elements/Pager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/elements/Pager.js b/src/components/elements/Pager.js index 3257f54..c1d1565 100644 --- a/src/components/elements/Pager.js +++ b/src/components/elements/Pager.js @@ -56,7 +56,8 @@ const Pager = (props) => { backgroundColor={(props.pageNr === 1) ? 'transparent' : theme.colors.dark}/> + backgroundColor={(props.pageNr === props.pages || props.pages === 0) + ? 'transparent' : theme.colors.dark}/> ); }