fix: improve purchaseAmount handling for better null checks
This commit is contained in:
@@ -98,7 +98,10 @@ class Morph {
|
||||
feedIds: data.feedIds!,
|
||||
fee: data.fee!,
|
||||
subscriptionCount: "subscriptionCount" in data ? data.subscriptionCount : null,
|
||||
purchaseAmount: "purchaseAmount" in data ? String(data.purchaseAmount) : null,
|
||||
purchaseAmount:
|
||||
"purchaseAmount" in data && data.purchaseAmount !== null
|
||||
? String(data.purchaseAmount)
|
||||
: null,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user