From 19d3666fb9fb21b795b75e90e499271520f5bf2c Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Tue, 10 May 2016 10:06:09 -0700 Subject: [PATCH] Avoid potential runtime error on My Account main page Signed-off-by: Jeff Davis --- src/od_pages_myopac.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/od_pages_myopac.coffee b/src/od_pages_myopac.coffee index 106a578..3d174d8 100644 --- a/src/od_pages_myopac.coffee +++ b/src/od_pages_myopac.coffee @@ -64,7 +64,7 @@ define [ if arguments.length is 0 # Parse a list of totals of physical items from the account summary table - totals = ( +(v.textContent.match(/\d+/)[0]) for v in @find('td').not '[align="right"]' ) + totals = ( +(v.textContent.match(/\d+/)[0] if v.textContent.match(/\d+/)) for v in @find('td').not '[align="right"]' ) tpl = _.template """ -- 2.11.0