Skip to content

Commit

Permalink
Merge pull request #107 from peterpeterparker/fix/undefined-signature
Browse files Browse the repository at this point in the history
fix: handle undefined signature on exported documents
  • Loading branch information
peterpeterparker authored Feb 7, 2021
2 parents d53e7a7 + 57ae2a4 commit b438752
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<a name="1.6.3"></a>

# 1.6.3 (2021-12-07)

### Fix

- handle undefined signature on exported documents

<a name="1.6.2"></a>

# 1.6.2 (2021-12-07)
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ android {
applicationId "com.tietracker.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 23
versionName "1.6.1"
versionCode 24
versionName "1.6.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
4 changes: 2 additions & 2 deletions ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.6.1;
MARKETING_VERSION = 1.6.3;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
PRODUCT_BUNDLE_IDENTIFIER = com.tietracker.app;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -372,7 +372,7 @@
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.6.1;
MARKETING_VERSION = 1.6.3;
PRODUCT_BUNDLE_IDENTIFIER = com.tietracker.app;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = USE_PUSH;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tietracker",
"version": "1.6.2",
"version": "1.6.3",
"private": true,
"dependencies": {
"@capacitor/android": "^2.4.6",
Expand Down
2 changes: 1 addition & 1 deletion public/workers/utils/utils.export.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ const initColumns = (invoices, i18n, backup) => {
const footerText = (signature) => {
const today = dayjs().format('YYYY-MM-DD');

return `${signature} - ${today}`;
return signature ? `${signature} - ${today}` : today;
};
4 changes: 2 additions & 2 deletions public/workers/utils/utils.pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const exportToPdf = async (invoices, client, currency, vat, i18n, signature) =>
});

doc.setProperties({
author: signature,
creator: signature,
author: signature ? signature : '',
creator: signature ? signature : '',
});

initPDFFonts(doc);
Expand Down

0 comments on commit b438752

Please sign in to comment.