fix: ui: Do not display a screen full of .. when there are no transactions. (#822)
This commit is contained in:
parent
bf3e82f780
commit
2b8190b238
@ -129,7 +129,7 @@ rsInit d reset ui@UIState{aopts=_uopts@UIOpts{uoCliOpts=copts@CliOpts{reportspec
|
||||
nearestidbydatethenid = third3 <$> (headMay $ sort
|
||||
[(abs $ diffDays (tdate t) prevseld, abs (tindex t - prevselidx), tindex t) | t <- ts])
|
||||
ts = map rsItemTransaction displayitems
|
||||
endidx = length displayitems - 1
|
||||
endidx = max 0 $ length displayitems - 1
|
||||
|
||||
rsInit _ _ _ = error "init function called with wrong screen type, should not happen" -- PARTIAL:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user