1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

provider fee statement tweak

This commit is contained in:
Matthias Kretschmann 2022-06-23 11:38:48 +01:00
parent 7f104c9858
commit 30b654975a
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -236,11 +236,7 @@ export async function handleComputeOrder(
try { try {
// Return early when valid order is found, and no provider fees // Return early when valid order is found, and no provider fees
// are to be paid // are to be paid
if ( if (initializeData?.validOrder && !initializeData.providerFee) {
initializeData?.validOrder &&
(!initializeData.providerFee ||
initializeData?.providerFee?.providerFeeAmount === '0')
) {
LoggerInstance.log( LoggerInstance.log(
'[compute] Has valid order: ', '[compute] Has valid order: ',
initializeData.validOrder initializeData.validOrder