Skip to content

Commit a4f941a

Browse files
committed
fix: don't attempt to re-sign an already signed object
1 parent 9697571 commit a4f941a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage/store/Store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class Store {
257257

258258
if (author !== undefined) {
259259

260-
if (object.shouldSignOnSave()) {
260+
if (object.shouldSignOnSave() && !object.hasLastSignature()) {
261261

262262
if (!author.hasKeyPair()) {
263263
const kp = await this.load(author.getKeyPairHash(), false);

0 commit comments

Comments
 (0)