From c1c4dbdd0edbbee26c59b59b573bb741551fec02 Mon Sep 17 00:00:00 2001 From: Romeo Ledesma Date: Mon, 17 Jun 2024 07:01:21 +0100 Subject: [PATCH] feat: remove redundant ternary --- .../streamingPayments.ts/cancelStreamingPaymentsMotion.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts index e02b9cab..ec41abce 100644 --- a/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts +++ b/src/handlers/motions/motionCreated/handlers/streamingPayments.ts/cancelStreamingPaymentsMotion.ts @@ -20,9 +20,7 @@ export default async ( await createMotionInDB(colonyAddress, event, { type: motionNameMapping[name], - fromDomainId: colonyAddress - ? getDomainDatabaseId(colonyAddress, domainId) - : undefined, + fromDomainId: getDomainDatabaseId(colonyAddress, domainId), gasEstimate: gasEstimate.toString(), streamingPaymentId: getExpenditureDatabaseId( colonyAddress,