aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-02-13 03:29:20 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-02-13 03:29:20 +0100
commite2738c58233038895611a67f127ee605112c5e11 (patch)
tree2a6dc2f526ad4a4646ac874adc55bcc38e2d2d29
parentd143ba95000f0b03685583fb9442863b9270e5a9 (diff)
don't process contract if stale
-rw-r--r--src/content_scripts/notify.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content_scripts/notify.ts b/src/content_scripts/notify.ts
index d29e5913d..6a0d9d298 100644
--- a/src/content_scripts/notify.ts
+++ b/src/content_scripts/notify.ts
@@ -362,6 +362,7 @@ namespace TalerNotify {
let proposal = await downloadContract(msg.contract_url, nonce);
if (proposal.data.nonce != nonce) {
console.error("stale contract");
+ return;
}
await processProposal(proposal);
return;