Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 033b122

Browse files
authored
Merge pull request #9145 from NejcZdovc/hotfix/#9137-show-all
Displays hide button in the ledger table
2 parents e9b68f1 + 0fe0329 commit 033b122

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/renderer/components/preferences/payment/ledgerTable.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ class LedgerTable extends ImmutableComponent {
258258
})
259259
}
260260

261+
const showButton = (hideLower && totalUnPinnedRows !== unPinnedRows.size) || (!hideLower && totalUnPinnedRows > 10)
262+
261263
return <section data-test-id='ledgerTable'>
262264
<div className={css(styles.hideExcludedSites)}>
263265
<div className={css(styles.columnOffset)} />
@@ -301,7 +303,7 @@ class LedgerTable extends ImmutableComponent {
301303
]}
302304
/>
303305
{
304-
(totalUnPinnedRows !== unPinnedRows.size && hideLower)
306+
showButton
305307
? <div className={css(styles.ledgerTable__showAllWrap)}>
306308
<BrowserButton secondaryColor
307309
testId={hideLower ? 'showAll' : 'hideLower'}

0 commit comments

Comments
 (0)