Skip to content

Commit 989738a

Browse files
alejandroachoAlejandro Acho
andauthored
fix swap out claim (#160)
* fix swap out claim * remove unnecessary change * restore one time policy * simplify solution * simplify solution * simplify solution --------- Co-authored-by: Alejandro Acho <alejandro@tribes.studio>
1 parent 13390ce commit 989738a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

shared/src/sdk/swap-out.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class SwapOutTracker {
7373
}
7474
this.currentStatus = newStatus;
7575

76-
if (this.currentStatus.status === 'CONTRACT_FUNDED' && this.currentStatus.claimRequestDate == null) {
76+
if (this.currentStatus.status === 'CONTRACT_FUNDED' && this.currentStatus?.claimRequestDate == null) {
7777
try {
7878
await this.claim();
7979
await this.persistence.update({ type: 'out', swapId: swap.swapId, claimRequestDate: new Date() });

0 commit comments

Comments
 (0)