diff --git a/app/views/qbo/_settings.html.erb b/app/views/qbo/_settings.html.erb index c533707..3821a88 100644 --- a/app/views/qbo/_settings.html.erb +++ b/app/views/qbo/_settings.html.erb @@ -103,5 +103,5 @@ Note: You need to authenticate after saving your key and secret above
- Last Sync: <%= Qbo.last_sync %> <%= link_to " Sync Now", qbo_sync_path %> + Last Sync: <%= Qbo.last_sync if Qbo.exists? %> <%= link_to " Sync Now", qbo_sync_path %>