fix: improve purchaseAmount handling for better null checks
This commit is contained in:
parent
86b2d083fb
commit
6cb4a3ea48
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue